how to convert list of “vertex sequence” to a vector

后端 未结 2 1328
一生所求
一生所求 2021-01-18 02:13

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]          


        
相关标签:
2条回答
  • 2021-01-18 02:42

    .... Ok, I found a way out:

    V(graph)$name will give me a vector of names

    0 讨论(0)
  • 2021-01-18 02:44

    For a more general case, just use the as_ids() function.

    0 讨论(0)
提交回复
热议问题