global_reaching_centrality

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:
gGraph

Graph to be used.

weightEdgePropertyMap (optional, default: None)

Edge weights (connection strengths). If not supplied, the unweighted definition is used.

normbool (optional, default: True)

If True, and weight is given, the weights are divided by their mean.

Returns:
GRCfloat

The global reaching centrality.

See also

local_reaching_centrality

Local reaching centrality

trophic_incoherence

Trophic incoherence parameter

centralization

Freeman centralization

graph_tool.structure.flow_hierarchy

Flow 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...