def central_point_dominance(self):
"""
Compute central point dominance.
Returns
-------
cpd : float
Central point dominance
"""
bet_cen = nx.betweenness_centrality(self.to_undirected())
bet_cen = list(bet_cen.values())
cpd = sum(max(bet_cen) - np.array(bet_cen))/(len(bet_cen)-1)
return cpd
评论列表
文章目录