is.named(graph)
Note that the uniqueness of vertex names are currently not enforced in igraph, you have to check that for yourself, when assigning the vertex names.
g <- graph.ring(10)
is.named(g)
V(g)$name <- letters[1:10]
is.named(g)
neighbors(g, "a")
Run the code above in your browser using DataLab