Examples for 'igraph::vertex_attr_names'


List names of vertex attributes

Aliases: vertex_attr_names list.vertex.attributes

Keywords:

### ** Examples

g <- make_ring(10) %>%
  set_vertex_attr("name", value = LETTERS[1:10]) %>%
  set_vertex_attr("color", value = rep("green", 10))
vertex_attr_names(g)
[1] "name"  "color"
plot(g)
plot of chunk example-igraph-vertex_attr_names-1

[Package igraph version 1.3.1 Index]