group_degree_centrality#

group_degree_centrality(G, S)[source]#

计算节点组的群组度中心性。

节点组 \(S\) 的群组度中心性是连接到组内成员的非组内成员的比例。

参数:
G

一个 NetworkX 图。

S列表或集合

S 是 G 中的一个节点组,将为其计算群组度中心性。

返回:
centrality浮点数

组 S 的群组度中心性。

引发:
NetworkXError

如果 S 中的节点不在 G 中。

备注

该度量在 [1] 中提出。

组中的节点数最多不能超过 n - 1,其中 n 是图中的总节点数。

参考文献

[1]

M G Everett and S P Borgatti: The Centrality of Groups and Classes. Journal of Mathematical Sociology. 23(3): 181-201. 1999. http://www.analytictech.com/borgatti/group_centrality.htm