I am trying to compute the small world coefficient and am running into two issues.
When I try to run analysis_random_graphs, the function runs smoothly until the progress bar shows 100% at which point my RStudio Session aborts. It doesn't show any error message, so I am not sure how to proceed in debugging.
I'm only interested in computing the sigma coefficient, so as an alternative, I tried to compute the small world coefficient by using the small.world function as follows:
testGraph = g.all.sub[[1]]$graphs[[1]]
randomGraphs = sim.rand.graph.par(testGraph, N=100, clustering=FALSE)
dt.small = small.world(testGraph, randomGraphs)
The randomGraphs is generated correctly but I get the following error when running the small.world function:
Error in FUN(X[[i]], ...) : Not a graph object
With the traceback showing the following line as the culprit
colMeans(vapply(rand, vapply, numeric(N[1L]), graph_attr, numeric(1L), "Lp"))
I am not too sure how to proceed from here. The documentation states to pass in the randomGraph from sim.rand.graph.par directly into small world, but the error is stating the random graph is not formatted correctly.