I am using Igraph package in R and when I am accessing the list of vertices names through V(graph), I am getting the following result:
Vertex sequence: [1]
.... Ok, I found a way out:
V(graph)$name will give me a vector of names
V(graph)$name