阅读graphml格式文件

时间:2017-03-28 11:40:40

标签: r networking igraph

我有一个加权网络的数据集,它有一个graphml格式。我使用下面的函数在R中使用" igraph"包,但它没有得到数据的重量。有什么想法可以提供帮助吗?

net1<-read.graph("text.graphml", format = "graphml")

1 个答案:

答案 0 :(得分:-1)

根据http://igraph.org/r/doc/read_graph.html,您可能希望将其更改为

net1&lt; -read.graph(&#34; text.graphml&#34;,format =&#34; gml&#34;)