我需要将 Gephi 图读入 Rstudio。相反 - 将 R 图读入 Gephi - 我找到了 rgexf 包和 write.gexf 函数。但显然没有 read.gexf :)

有没有人有解决这个小问题的方法?

您忠诚的。

最佳答案

https://blog.gephi.org/2013/rgexf-an-r-library-to-work-with-gexf-graph-files/ 在此页面上,您有一个来自 rgexf 包的示例:

# Installing from CRAN and loading
install.packages("rgexf", dependencies=TRUE)
library(rgexf)

# Reading lesmiserables graph (and summarizing)
lesmiserables <- read.gexf("http://gephi.org/datasets/LesMiserables.gexf")
summary(lesmiserables)

所以 - read.gexf() 应该是你问题的答案;)

这个包的主页 - https://bitbucket.org/gvegayon/rgexf/wiki/Home

关于在 R 中读取 Gephi 图,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28626540/

10-13 04:23