Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据集,其中包含电子邮件对话的网络数据,该数据集由代表代理之间连接的两列组成。
可以从这里访问数据集
由于我在 RI 中使用 igraph,因此想将此文件转换为 GML 格式。
有没有办法做到这一点?
希望有帮助。
library(igraph) my.data <- read.delim(url("http://dl.dropbox.com/u/22681355/email.csv"), sep = '') my.graph <- graph.data.frame(d = my.data, directed = FALSE) write.graph(graph = my.graph, file = 'email.gml', format = 'gml')