View source: R/network-summary.R
| estrada_index | R Documentation |
A graph-level spectral invariant derived from subgraph centrality:
EE(G) = \sum_{i=1}^{n} e^{\lambda_i}
where \lambda_i are the eigenvalues of the adjacency matrix. The
Estrada index equals the total number of closed walks in the graph,
weighted by walk length: EE(G) = \sum_k M_k / k! where M_k is
the number of closed walks of length k. It is the sum of subgraph
centralities across all nodes.
estrada_index(x)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
Matches networkx.estrada_index at machine epsilon (max relative
difference ~5e-15 across random test graphs).
A single numeric value — the Estrada index of the graph.
Estrada, E. (2000). Characterization of 3D molecular structure. Chemical Physics Letters, 319(5-6), 713-718.
centrality_subgraph for the per-node equivalent
(sum of subgraph_centrality(x) equals estrada_index(x)).
# Karate club
g <- igraph::make_graph("Zachary")
estrada_index(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.