global_reaching_centrality#
- graph_tool.centrality.global_reaching_centrality(g, weight=None, norm=True)[git][source]#
Calculate the global reaching centrality of the graph.
- Parameters:
- g
Graph Graph to be used.
- weight
EdgePropertyMap(optional, default:None) Edge weights (connection strengths). If not supplied, the unweighted definition is used.
- norm
bool(optional, default:True) If
True, andweightis given, the weights are divided by their mean.
- g
- Returns:
- GRC
float The global reaching centrality.
- GRC
See also
local_reaching_centralityLocal reaching centrality
trophic_incoherenceTrophic incoherence parameter
centralizationFreeman centralization
graph_tool.structure.flow_hierarchyFlow hierarchy of a directed graph
Notes
The global reaching centrality [mones-hierarchy-2012] is a measure of the hierarchy of a graph,
\[GRC = \frac{1}{n-1}\sum_i\left[C_R^{\max} - C_R(i)\right],\]where \(C_R(i)\) is the local reaching centrality of vertex \(i\) (see
local_reaching_centrality()), and \(C_R^{\max}\) is its largest value. It takes time \(O(V(V+E))\).References
[mones-hierarchy-2012]Enys Mones, Lilla Vicsek, and Tamás Vicsek, “Hierarchy measure for complex networks”, PLoS ONE 7, e33799 (2012), DOI: 10.1371/journal.pone.0033799 [sci-hub, @tor]
Examples
>>> g = gt.collection.data["celegansneural"] >>> print(gt.global_reaching_centrality(g)) 0.133023648...