Department of Information Systems and Management, National University of Defense Technology, Changsha, China.
PLoS One. 2011;6(7):e22557. doi: 10.1371/journal.pone.0022557. Epub 2011 Jul 27.
Betweenness centrality is an essential index for analysis of complex networks. However, the calculation of betweenness centrality is quite time-consuming and the fastest known algorithm uses O(N(M + N log N)) time and O(N + M) space for weighted networks, where N and M are the number of nodes and edges in the network, respectively. By inserting virtual nodes into the weighted edges and transforming the shortest path problem into a breadth-first search (BFS) problem, we propose an algorithm that can compute the betweenness centrality in O(wDN2) time for integer-weighted networks, where w is the average weight of edges and D is the average degree in the network. Considerable time can be saved with the proposed algorithm when w < log N/D + 1, indicating that it is suitable for lightly weighted large sparse networks. A similar concept of virtual node transformation can be used to calculate other shortest path based indices such as closeness centrality, graph centrality, stress centrality, and so on. Numerical simulations on various randomly generated networks reveal that it is feasible to use the proposed algorithm in large network analysis.
中间中心度是分析复杂网络的重要指标。然而,中间中心度的计算非常耗时,已知最快的算法在加权网络中使用 O(N(M + N log N))的时间和 O(N + M)的空间,其中 N 和 M 分别是网络中的节点和边的数量。通过在加权边中插入虚拟节点,并将最短路径问题转换为广度优先搜索(BFS)问题,我们提出了一种算法,该算法可以在 O(wDN2)的时间内计算整数加权网络的中间中心度,其中 w 是边的平均权重,D 是网络中的平均度数。当 w < log N/D + 1 时,所提出的算法可以节省大量时间,表明它适用于轻度加权的大型稀疏网络。虚拟节点变换的类似概念可用于计算其他基于最短路径的指标,如接近中心度、图中心度、压力中心度等。对各种随机生成网络的数值模拟表明,该算法可用于大型网络分析。