estrada_index#
- graph_tool.centrality.estrada_index(g)[git][source]#
Return the Estrada index of the graph.
- Parameters:
- g
Graph Graph to be used.
- g
- Returns:
- EE
float The Estrada index \(\mathrm{tr}(e^A) = \sum_k e^{\lambda_k}\), i.e. the sum of the subgraph centralities [estrada-characterization-2000].
- EE
See also
subgraph_centralitySubgraph centrality
communicabilityCommunicability between vertices
graph_tool.clustering.spectral_bipartivitySpectral bipartivity
Notes
The Estrada index [estrada-characterization-2000] is
\[EE = \sum_i SC_i = \operatorname{tr}e^{\boldsymbol A} = \sum_k e^{\lambda_k},\]where \(SC_i\) is the subgraph centrality of vertex \(i\) (see
subgraph_centrality()), \(\boldsymbol A\) is the adjacency matrix (seeadjacency()), and \(\lambda_k\) are its eigenvalues (complex for directed graphs, in which case the real part of the sum is returned). The eigenvalues are computed with a dense eigensolver, in time \(O(V^3)\).References
[estrada-characterization-2000] (1,2)Ernesto Estrada, “Characterization of 3D molecular structure”, Chemical Physics Letters 319, 713-718 (2000), DOI: 10.1016/S0009-2614(00)00158-5 [sci-hub, @tor]
Examples
>>> g = gt.collection.data["karate"] >>> print(gt.estrada_index(g)) 1041.2470334...