【发布时间】:2021-09-30 03:14:42
【问题描述】:
igraph::shortest.paths 函数是否有最大节点数?
以下代码在具有 128GB RAM 的 Windows 10 下使 RStudio Version 1.4.1106 中的 Microsoft R Open 4.0.2 崩溃。
问题:
-
这是因为
igraph的功能吗 -
这和本地 RAM 有关系吗?
-
什么是替代品?也许使用
cppRouting包?library(igraph) c1 <- sample(1:48000, 293631, replace=TRUE) c2 <- sample(1:48000, 293631, replace=TRUE) # column bind the two vectors el <- cbind(c1, c2) # convert matrix as an edgelist into an undirected graph g <- graph.edgelist(el, directed=FALSE) # obtain distance matrix with shortest path between all pairs of nodes t <- shortest.paths(g)
【问题讨论】:
-
我想你可以从这个链接中得到一些提示:stackoverflow.com/q/9984283/12158757