# 中介中心性

中介中心性是图论中的一项度量，用于量化一个节点出现在其他节点对之间最短路径上的频繁程度，常用来识别网络分析中具有影响力的顶点。中介中心性高的节点可以作为关键的中介连接其他节点，在社会学中扮演着桥接原本相互分离的群体的“掮客”角色，因此该度量指向的是那些控制通信的顶点，而非那些拥有众多联系的顶点。如今，它已成为社会网络、生物网络和交通网络中的标准工具。<sup>[1](https://doi.org/10.2307/3033543)</sup><sup> • </sup><sup>[2](https://ieeexplore.ieee.org/ielx7/6287639/9312710/09471855.pdf)</sup><sup> • </sup><sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup>

| 关键事实 | 说明 |
|---|---|
| 度量内容 | 对所有其他节点对求和，每一项是该节点对之间经过该节点的最短路径所占的比例<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup> |
| 形式定义 | \( c_B(v) = \sum_{s,t \in V} \sigma(s,t\,|\,v)/\sigma(s,t) \)，其中 \( \sigma(s,t) \) 为最短 \((s,t)\)-路径的数量，\( \sigma(s,t\,|\,v) \) 为其中经过 \(v\) 的数量<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup> |
| 归一化 | 无向图将原始得分乘以 \( 2/((n-1)(n-2)) \)，有向图乘以 \( 1/((n-1)(n-2)) \)，使取值落在 \([0,1]\) 区间内<sup>[4](https://networkx.org/documentation/networkx-3.2.1/_modules/networkx/algorithms/centrality/betweenness.html)</sup> |
| 精确计算复杂度 | 无权图为 \( O(nm) \) 时间，加权图为 \( O(nm + n^2 \log n) \) 时间，空间为 \( O(n+m) \)<sup>[5](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)</sup> |
| 近似计算成本 | 在无向图上，KADABRA 平均比 RK 采样算法快约 100 倍，比 ABRA 快 1,000 倍以上<sup>[6](https://doi.org/10.1145/3284359)</sup> |
| 稳定性 | 与度和接近中心性不同，中介中心性在网络结构的随机或系统性变化下通常非常不稳定<sup>[7](https://link.springer.com/content/pdf/10.1007/s12599-010-0127-3.pdf)</sup> |
| 典型用途 | 社会网络中的掮客分析、交通规划、蛋白质相互作用分析、合作网络以及社区发现<sup>[8](https://link.springer.com/article/10.1007/s41109-024-00685-5)</sup> |

## 工作原理

对于每一对节点 \(s,t\)，设 \( \sigma_{st} \) 为它们之间最短路径的数量，\( \sigma_{st}(v) \) 为其中经过 \(v\) 的数量。节点对依赖度为 \( \delta_{st}(v) = \sigma_{st}(v)/\sigma_{st} \)，中介中心性即对所有节点对求和，约定当 \(s=t\) 时 \( \sigma(s,t) = 1 \)，当 \(v \in \{s,t\}\) 时 \( \sigma(s,t\,|\,v) = 0 \)。<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup> 等价地，如果均匀随机地选取两个节点，并均匀随机地选取它们之间的一条最短路径，那么 \(v\) 的中介中心性就是这条路径经过 \(v\) 的概率。<sup>[6](https://doi.org/10.1145/3284359)</sup>

归一化将原始求和转换为经过该节点的最短路径的平均比例。NetworkX 对无向图将原始和乘以 \( 2/((n-1)(n-2)) \)，对有向图乘以 \( 1/((n-1)(n-2)) \)，并对未归一化的无向结果按 0.5 重新缩放，因为每条最短路径被计算了两次。<sup>[4](https://networkx.org/documentation/networkx-3.2.1/_modules/networkx/algorithms/centrality/betweenness.html)</sup><sup> • </sup><sup>[5](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)</sup> 有些文献给出单一因子 \( 1/((N-1)(N-2)) \)，称其对有向和无向网络均适用；差别在于原始求和是将每条无向路径计一次还是计两次。<sup>[9](https://webs-deim.urv.cat/~sergio.gomez/papers/Gomez-Centrality_in_networks-Finding_the_most_important_nodes.pdf)</sup>

## 计算方法

朴素方法对每个顶点累加所有 \( \Theta(n^2) \) 个节点对依赖度，形成 \( \Omega(n^3) \) 的瓶颈，使得早期软件中超过几百个行动者的网络难以计算。<sup>[5](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)</sup> Brandes 算法通过一次处理一个源点 \(s\) 消除了该瓶颈：用 BFS（无权）或迪杰斯特拉算法扫描（加权）构建最短路径 DAG，然后按如下递推累加依赖度：

\[ \delta_{s\cdot}(v) = \sum_{w \,:\, v \in P_s(w)} \frac{\sigma_{sv}}{\sigma_{sw}} \left(1 + \delta_{s\cdot}(w)\right), \]

按逆序遍历该 DAG；在最短路径唯一的情形下，\(\sigma\) 比值为 1。<sup>[10](https://www.cs.utexas.edu/~vlr/papers/mfcs14.pdf)</sup><sup> • </sup><sup>[5](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)</sup> 每个源点的代价为 \( O(m) \)，因此无权图总计 \( O(nm) \)，加权图 \( O(nm + n^2 \log n) \)，空间为 \( O(n+m) \)。<sup>[5](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)</sup> 对于已知技术，这些界基本上是紧的：任何基于路径比较的算法都需要 \( \Omega(nm) \) 时间，一种代数方法可达到 \( O(n^{\omega} \cdot \mathrm{Diam}(G)) \)，其中 \( \omega < 2.376 \)，而真正亚二次的精确算法将违反 APSP 猜想。<sup>[11](https://ar5iv.labs.arxiv.org/html/0809.1906)</sup><sup> • </sup><sup>[12](https://drops.dagstuhl.de/storage/00lipics/lipics-vol123-isaac2018/LIPIcs.ISAAC.2018.36/LIPIcs.ISAAC.2018.36.pdf)</sup>

对于大规模图，近似方法对最短路径进行采样。采样 \( O(D^2/\lambda^2 \log(n/\delta)) \) 个枢轴节点可得到加性误差为 \( \lambda \) 的估计，概率为 \( 1-\delta \)，其中 \(D\) 为直径；VC 维分析将样本数降至 \( (c/\lambda^2)(\lfloor \log_2(VD-2) \rfloor + 1 + \log(1/\delta)) \)，其中 \(VD\) 为顶点直径。<sup>[6](https://doi.org/10.1145/3284359)</sup> 布兰德斯和皮希提出的枢轴采样会高估枢轴附近不重要的节点；后来一个推广枢轴采样的无偏框架在道路网络上将误差降至枢轴算法的约四分之一，耗时降至约十六分之一。<sup>[13](https://doi.org/10.1142/s0218127407018403)</sup><sup> • </sup><sup>[14](https://turing.iem.thm.de/routeplanning/hwy/betweenness.pdf)</sup> ABRA 利用拉德马赫平均值分析的渐进采样，在静态和完全动态图上维持概率保证的近似。<sup>[15](https://doi.org/10.48550/arxiv.1602.05866)</sup> KADABRA 使用平衡双向 BFS 对路径采样，当度分布具有有限二阶矩时每条路径需要 \( O(n^{1/2+\varepsilon}) \)，在无向图上比 RK 快约 100 倍，在有向图上快 70 倍，比 ABRA 快 1,000 倍以上。<sup>[6](https://doi.org/10.1145/3284359)</sup> Bavarian 用方差感知的蒙特卡洛经验拉德马赫平均值强化了保证，并表明足够的样本量取决于顶点直径。<sup>[16](https://doi.org/10.1145/3577021)</sup> 各大厂商直接实现了这些思想：NetworkX 提供 Brandes 算法的 \(k\)-枢轴近似，<sup>[4](https://networkx.org/documentation/networkx-3.2.1/_modules/networkx/algorithms/centrality/betweenness.html)</sup> Neo4j GDS 按与度成比例的概率选择枢轴，当样本量等于节点数时给出精确结果。<sup>[17](https://neo4j.com/docs/graph-data-science/current/algorithms/betweenness-centrality/)</sup>

## 起源

这些度量建立在贝弗拉斯（1948）的早期直觉之上。一个更早的相关量——应力中心性——统计经过某顶点的最短路径数量而不做比例加权，归功于阿方索·希姆贝尔 1953 年发表在《数学生物学通报》上关于通信网络结构的论文。<sup>[18](https://doi.org/10.1007/bf02476438)</sup> 弗里曼在《基于中介性的一组中心性度量》（《社会计量学》，1977）中引入了该度量，这是一族基于图论、以 \(n\) 个点的图的最大可能值归一化的三种中介性度量。<sup>[1](https://doi.org/10.2307/3033543)</sup> 乌尔里克·布兰德斯 2001 年发表在《数理社会学杂志》上的论文给出了 \( O(nm) \) 依赖度累加算法，<sup>[19](https://doi.org/10.1080/0022250x.2001.9990249)</sup> 他 2008 年发表在《社会网络》上的论文统一了最短路径各变体的计算。<sup>[20](https://doi.org/10.1016/j.socnet.2007.11.001)</sup> 近似路线从布兰德斯和皮希 2007 年的枢轴采样<sup>[13](https://doi.org/10.1142/s0218127407018403)</sup> 经里翁达托和科尔纳罗普洛斯 2015 年的 VC 维采样<sup>[21](https://doi.org/10.1007/s10618-015-0423-0)</sup> 和 ABRA（2016）<sup>[15](https://doi.org/10.48550/arxiv.1602.05866)</sup> 发展至 KADABRA（2019）<sup>[6](https://doi.org/10.1145/3284359)</sup> 和 Bavarian（2022）。<sup>[16](https://doi.org/10.1145/3577021)</sup>

## 变体

边中介中心性将 \( \sigma(s,t\,|\,v) \) 替换为边 \(e\) 的 \( \sigma(s,t\,|\,e) \)；一个突出的应用是迭代删除中介中心性最高的边来进行社区发现。<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup> 群体中介中心性将得分扩展到顶点子集，k-中介中心性只统计距离至多为 \(k\) 的节点对，将路径长度限制在常数范围内。<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup> 负载中心性中，每个节点向其他每个节点发送单位商品，在分支点均分，这一概念常与中介中心性混淆；布兰德斯指出纽曼早期的一个中介中心性算法实际上计算的是无向图上的负载中心性。<sup>[3](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)</sup>

流中介中心性由弗里曼、博尔加蒂和怀特于 1991 年提出，统计节点对之间最大流上的通过量而非测地线。<sup>[22](https://doi.org/10.1016/0378-8733%2891%2990017-n)</sup> 随机游走中介中心性由 M. E. J. 纽曼于 2005 年提出，统计一个节点被另外两个节点之间的随机游走经过的频繁程度，包括几乎所有路径的贡献，可用矩阵方法在 \( O((m+n)n^2) \) 时间内计算。<sup>[23](https://doi.org/10.1016/j.socnet.2004.11.009)</sup> 同一度量被称为电流中介中心性，可解释为单位 \(st\)-电流经过某顶点的比例；两种度量在树上一致。<sup>[24](https://www.uni-konstanz.de/algo/publications/bf-cmbcf-05.pdf)</sup> 通信性中介中心性由埃斯特拉达、海厄姆和波田野于 2008 年提出，对所有游走按长度相关缩放加权，以邻接矩阵的指数为特征。<sup>[25](https://doi.org/10.1016/j.physa.2008.11.011)</sup> 随机最短路径中介中心性加入逆温度参数 \(\beta\)，在最短路径和随机游走极限之间插值。<sup>[26](https://pmc.ncbi.nlm.nih.gov/articles/PMC4738330/)</sup> 在时间图中，统计最早到达路径和最快路径是 #P-难的，因此这些中介中心性变体难以处理，而最短时间中介中心性允许一个受布兰德斯启发的 \( O(|V| \cdot |E| \cdot T) \) 算法。<sup>[27](https://www.cambridge.org/core/journals/network-science/article/algorithmic-aspects-of-temporal-betweenness/5AC743D74B11417B032C389E3D0C5B27)</sup>

## 应用

已记录的领域包括社会网络、交通、生物学、科学合作网络和社区发现。<sup>[8](https://link.springer.com/article/10.1007/s41109-024-00685-5)</sup> 在社会网络中，该得分识别桥接分离群体的掮客。<sup>[2](https://ieeexplore.ieee.org/ielx7/6287639/9312710/09471855.pdf)</sup> 在生物学中，通信性中介中心性从蛋白质–蛋白质相互作用网络中恢复有意义的信息。<sup>[25](https://doi.org/10.1016/j.physa.2008.11.011)</sup>

## 局限与替代方案

中介中心性对扰动敏感。博兰发现它在网络结构的随机或系统性变化下通常非常不稳定，而度和接近中心性仅略有变化；博尔加蒂及其同事的四种错误类型（添加或删除一条边或一个节点）对主要度量的影响类似，中介中心性表现略差，后来的工作表明稳健性取决于拓扑结构。<sup>[7](https://link.springer.com/content/pdf/10.1007/s12599-010-0127-3.pdf)</sup> 在从完整网络抽样的情形下，特征向量中心性与完整网络得分的相关性最好，中介中心性最差。<sup>[7](https://link.springer.com/content/pdf/10.1007/s12599-010-0127-3.pdf)</sup> 度是中心性的一种有用的初步近似，而模块度是使局部度量与全局度量最为脱钩的拓扑性质，因此在模块化网络中这些度量分歧最大。<sup>[28](https://pmc.ncbi.nlm.nih.gov/articles/PMC6660088/)</sup>

最短路径假设本身就是一种局限：真实传播通常介于最短路径和随机游走这两个极端情形之间，一个没有最短路径经过的节点在随机游走中介中心性上仍可位列前十，显示出这些度量之间的巨大差异。<sup>[9](https://webs-deim.urv.cat/~sergio.gomez/papers/Gomez-Centrality_in_networks-Finding_the_most_important_nodes.pdf)</sup> 在计算上，度的代价为 \( O(n) \)，中介中心性为 \( O(n \cdot m) \)，特征向量中心性为 \( O(n^2) \)，Katz 中心性为 \( O(n^3) \)。<sup>[7](https://link.springer.com/content/pdf/10.1007/s12599-010-0127-3.pdf)</sup> 一个实际陷阱：由于浮点问题，NetworkX 的加权实现不保证在非整数边权下正确；将权重缩放为整数是建议的变通方法。<sup>[4](https://networkx.org/documentation/networkx-3.2.1/_modules/networkx/algorithms/centrality/betweenness.html)</sup>

## References

1. [Linton C. Freeman (1977). A Set of Measures of Centrality Based on Betweenness. Sociometry.](https://doi.org/10.2307/3033543)
2. [A Survey on Centrality Metrics and Their Network Resilience Analysis (IEEE Access)](https://ieeexplore.ieee.org/ielx7/6287639/9312710/09471855.pdf)
3. [On Variants of Shortest-Path Betweenness Centrality and their Generic Computation (Brandes, 2008)](https://www.uni-konstanz.de/algo/publications/b-vspbc-08.pdf)
4. [networkx.algorithms.centrality.betweenness, NetworkX 3.2.1 documentation](https://networkx.org/documentation/networkx-3.2.1/_modules/networkx/algorithms/centrality/betweenness.html)
5. [A Faster Algorithm for Betweenness Centrality (Brandes, 2001)](https://snap.stanford.edu/class/cs224w-readings/brandes01centrality.pdf)
6. [Michele Borassi, Emanuele Natale (2019). KADABRA is an ADaptive Algorithm for Betweenness via Random Approximation. ACM Journal of Experimental Algorithmics.](https://doi.org/10.1145/3284359)
7. [A Critical Review of Centrality Measures in Social Networks (BISE)](https://link.springer.com/content/pdf/10.1007/s12599-010-0127-3.pdf)
8. [Temporal betweenness centrality on shortest walks variants (Applied Network Science, 2024)](https://link.springer.com/article/10.1007/s41109-024-00685-5)
9. [Centrality in Networks: Finding the Most Important Nodes (book chapter)](https://webs-deim.urv.cat/~sergio.gomez/papers/Gomez-Centrality_in_networks-Finding_the_most_important_nodes.pdf)
10. [Incremental computation of betweenness centrality (MFCS 2014)](https://www.cs.utexas.edu/~vlr/papers/mfcs14.pdf)
11. [Betweenness Centrality: Algorithms and Lower Bounds](https://ar5iv.labs.arxiv.org/html/0809.1906)
12. [An Adaptive Version of Brandes' Algorithm for Betweenness Centrality (ISAAC 2018)](https://drops.dagstuhl.de/storage/00lipics/lipics-vol123-isaac2018/LIPIcs.ISAAC.2018.36/LIPIcs.ISAAC.2018.36.pdf)
13. [ULRIK BRANDES, CHRISTIAN PICH (2007). CENTRALITY ESTIMATION IN LARGE NETWORKS. International Journal of Bifurcation and Chaos.](https://doi.org/10.1142/s0218127407018403)
14. [Better Approximation of Betweenness Centrality (Geisberger, Sanders, Schultes)](https://turing.iem.thm.de/routeplanning/hwy/betweenness.pdf)
15. [Riondato, Matteo, Upfal, Eli (2016). ABRA: Approximating Betweenness Centrality in Static and Dynamic Graphs with Rademacher Averages. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1602.05866)
16. [Cyrus Cousins, Chloe Wohlgemuth, Matteo Riondato (2022). Bavarian : Betweenness Centrality Approximation with Variance-aware Rademacher Averages. ACM Transactions on Knowledge Discovery from Data.](https://doi.org/10.1145/3577021)
17. [Betweenness Centrality, Neo4j Graph Data Science documentation](https://neo4j.com/docs/graph-data-science/current/algorithms/betweenness-centrality/)
18. [Alfonso Shimbel (1953). Structural parameters of communication networks. Bulletin of Mathematical Biology.](https://doi.org/10.1007/bf02476438)
19. [Ulrik Brandes (2001). A faster algorithm for betweenness centrality*. Journal of Mathematical Sociology.](https://doi.org/10.1080/0022250x.2001.9990249)
20. [Ulrik Brandes (2008). On variants of shortest-path betweenness centrality and their generic computation. Social Networks.](https://doi.org/10.1016/j.socnet.2007.11.001)
21. [Matteo Riondato, Evgenios M. Kornaropoulos (2015). Fast approximation of betweenness centrality through sampling. Data Mining and Knowledge Discovery.](https://doi.org/10.1007/s10618-015-0423-0)
22. [Centrality in valued graphs: A measure of betweenness based on network flow (Social Networks, 1991)](https://doi.org/10.1016/0378-8733%2891%2990017-n)
23. [M.E. J. Newman (2005). A measure of betweenness centrality based on random walks. Social Networks.](https://doi.org/10.1016/j.socnet.2004.11.009)
24. [Centrality Measures Based on Current Flow (Brandes & Fleischer, 2005)](https://www.uni-konstanz.de/algo/publications/bf-cmbcf-05.pdf)
25. [Ernesto Estrada, Desmond J. Higham, Naomichi Hatano (2008). Communicability betweenness in complex networks. Physica A Statistical Mechanics and its Applications.](https://doi.org/10.1016/j.physa.2008.11.011)
26. [Two betweenness centrality measures based on Randomized Shortest Paths](https://pmc.ncbi.nlm.nih.gov/articles/PMC4738330/)
27. [Algorithmic aspects of temporal betweenness (Network Science, Cambridge Core)](https://www.cambridge.org/core/journals/network-science/article/algorithmic-aspects-of-temporal-betweenness/5AC743D74B11417B032C389E3D0C5B27)
28. [Consistency and differences between centrality measures across distinct classes of networks (PLoS ONE)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6660088/)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph invariants and parameters › Distance-based invariants

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/betweenness-centrality

English original: https://www.edgepedia.org/betweenness-centrality
