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

后端 未结 2 1329
一生所求
一生所求 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

提交回复
热议问题