estrada_index#
- estrada_index(G)[source]#
返回图 G 的 Estrada 指数。
Estrada 指数是一个拓扑指数,用于描述折叠或三维‘紧凑性’ ([1])。
- 参数:
- G: 图
- 返回:
- Estrada 指数: 浮点数
- 引发:
- NetworkXError
如果图不是无向简单图。
说明
设
G=(V,E)
是一个有n
个节点的简单无向图,并且设lambda_{1}leqlambda_{2}leqcdotslambda_{n}
是其邻接矩阵A
的特征值的非增排序。Estrada 指数是 ([1], [2])\[EE(G)=\sum_{j=1}^n e^{\lambda _j}.\]参考文献
[1] (1,2)E. Estrada, “Characterization of 3D molecular structure”, Chem. Phys. Lett. 319, 713 (2000). https://doi.org/10.1016/S0009-2614(00)00158-5
[2]José Antonio de la Peñaa, Ivan Gutman, Juan Rada, “Estimating the Estrada index”, Linear Algebra and its Applications. 427, 1 (2007). https://doi.org/10.1016/j.laa.2007.06.020
示例
>>> G = nx.Graph([(0, 1), (1, 2), (1, 5), (5, 4), (2, 4), (2, 3), (4, 3), (3, 6)]) >>> ei = nx.estrada_index(G) >>> print(f"{ei:0.5}") 20.55