Compute betweenness centrality for nodes.
Betweenness centrality of a node is the fraction of all shortest paths that pass through that node.
Parameters: | G : graph
normalized : bool, optional
weighted_edges : bool, optional
|
---|---|
Returns: | nodes : dictionary
|
See also
Notes
The algorithm is from Ulrik Brandes, A Faster Algorithm for Betweenness Centrality. Journal of Mathematical Sociology 25(2):163-177, 2001. http://www.inf.uni-konstanz.de/algo/publications/b-fabc-01.pdf