Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate the betweenness using the random walk algorithm?

The igraph package calculates the betweenness using shortest path between nodes. http://igraph.sourceforge.net/doc/R/betweenness.html

Now I want to calculate the betweenness using the random walk.

A measure of betweenness centrality based on random walks, M. E. J. Newman, Social Networks 27, 39-54 (2005).

I know that NetworkX in python can implement this function. But it turns out the memory error because of the large network I used.

Is there any suggestion about how to calculate betweenness using the random walk?

Thanks!

like image 247
Ben Avatar asked Nov 03 '22 18:11

Ben


1 Answers

After running for three days and nights, the computer finally obtained the result of betweenness using NetworkX.

The graph I used consists of about six thousand nodes and 5 million edges. The RAM of computer is 16G.

The solver is set to “full” (uses most memory), not the default 'lu'.

This link also mentioned the problem of run time using NetworkX to calculate the betweenness based on random walk.

like image 135
Ben Avatar answered Nov 09 '22 10:11

Ben