Is there a maximum number of nodes for the igraph::shortest.paths
function?
The following code crashes Microsoft R Open 4.0.2
in RStudio Version 1.4.1106
under Windows 10 with 128GB RAM.
Questions:
Is this because of the functionality of
igraph
Does this have to do with the local RAM?
What are alternatives? Perhaps using the
cppRouting
package?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)