fg.betweenness | R Documentation |
The vertex betweenness centrality can be defined as the number of geodesics (shortest paths) going through a vertex.
fg.betweenness(fg, vids = 0:(fg$vcount - 1))
fg |
The FlashGraph object. |
vids |
A vector of vertex IDs. Default runs it on the entire graph. |
A vector with betweenness centrality values for all vertices with respect to 'vids'.
Disa Mhembere <disa@jhu.edu>
fg <- fg.load.graph("edge_list.txt") res <- fg.betweenness(fg, c(1,10))