Skip to contents

List names of vertex attributes

Usage

vertex_attr_names(graph)

Arguments

graph

The graph.

Value

Character vector, the names of the vertex attributes.

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)