Examples for 'igraph::V'


Vertices of a graph

Aliases: V

Keywords:

### ** Examples

# Vertex ids of an unnamed graph
g <- make_ring(10)
V(g)
+ 10/10 vertices, from c38c09e:
 [1]  1  2  3  4  5  6  7  8  9 10
# Vertex ids of a named graph
g2 <- make_ring(10) %>%
  set_vertex_attr("name", value = letters[1:10])
V(g2)
+ 10/10 vertices, named, from f07f25b:
 [1] a b c d e f g h i j

[Package igraph version 1.3.1 Index]