Betweenness Centrality

Machine Learning
Introduced by
Freeman, L. C.
Year
1977
Type
Centrality measure
Family
Network science

What does it do?

Betweenness centrality, formalized by Linton C. Freeman in 1977, measures how often a node lies on the shortest paths between pairs of other nodes in a network.

Nodes with high betweenness act as brokers or bridges, because flows between other pairs of nodes must often pass through them.

The intuition behind the method

Think of a city road network in which all cross-country routes funnel through a single junction. That junction has maximum betweenness even if it has only a moderate number of roads. In a social network, a person who routinely passes information between two otherwise disconnected cliques occupies the same position: they may not know many people directly, but they sit on the critical path that holds the network together. Betweenness centrality quantifies exactly that brokerage role, independent of raw connection count.

History

Linton Freeman formalized betweenness centrality in his 1977 Sociometry paper, building on early intuitions of Bavelas (1948) about the control of communication through points that lie between others. Freeman's measures define centrality in terms of how often a point falls on the shortest path between others. Ulrik Brandes's 2001 algorithm reduced the cost of computing betweenness for all nodes: it requires O(n + m) space and runs in O(nm) time on unweighted networks and O(nm + n² log n) on weighted networks, where m is the number of links, whereas the fastest earlier algorithms required time of order n³.

When to use it

Choose betweenness centrality when the research question concerns brokerage, gatekeeping, or bridging: whether a node controls the routing of information, resources, or influence between other nodes. It applies to undirected and directed graphs, and to weighted graphs in which edge weights represent distance or cost. Freeman's own framing, as given in the abstract, is the potential for control of communication, so the measure fits questions about communication networks, collaboration or citation networks, and supply chains. Do not use it as the only centrality measure when brokerage is not the theoretical focus. Degree centrality is simpler and sufficient for questions about direct connectivity, and eigenvector or PageRank-type measures better capture prestige that propagates through ties. For large or dense networks, exact computation is costly, so plan for an efficient implementation or an approximation before choosing this measure.

Limitations and considerations

  • Exact computation remains costly for large networks: the complexity bounds in the Brandes abstract grow with the number of links as well as nodes, so dense networks are expensive even with the improved algorithm.
  • Assumes that flows follow shortest paths. Where flows traverse longer or randomized routes, the score may not reflect the actual pattern of control.
  • Depends on the full set of geodesics, so a few unobserved or spurious ties can change which nodes lie on shortest paths and shift betweenness rankings noticeably.
  • Gives equal weight to every shortest path, even when edge capacities or relationship strengths differ, so it does not represent the volume or quality of flow along each route.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Captures structural brokerage and bridge roles that degree and eigenvector centrality can miss, because the score depends on positions on shortest paths rather than on the number of direct ties.
  • Applies to directed, undirected, weighted, and unweighted networks with the same definition, with the weight convention affecting only which paths count as shortest.
  • The normalized score allows nodes within one network to be compared, and makes scores from networks of different sizes easier to compare than raw totals.
  • Brandes's algorithm computes all betweenness scores together and substantially extends the range of networks for which exact centrality analysis is feasible, compared with earlier methods.

Applications

  • Identifying gatekeepers and information brokers in organizational communication networks.
  • Detecting critical infrastructure nodes in transportation, power grid, and internet topology studies.
  • Finding key intermediary authors or papers in citation and collaboration networks.
  • Mapping structural holes and brokerage positions in inter-firm alliance networks.
  • Locating influential spreaders in epidemiological and rumor diffusion models.
  • Prioritizing nodes for targeted interventions (e.g., vaccination, disruption) in public health and security research.

How it works

How it works

1

For pairs of distinct nodes (s, t) in the network, all shortest paths (geodesics) between them are identified. For weighted graphs, shortest paths are defined by minimum total edge weight; for unweighted graphs, by fewest hops. For undirected graphs each unordered pair {s, t} is counted once, while directed graphs count each ordered pair separately; this convention must match the normalization used in the next steps. This step establishes the set of paths over which betweenness is distributed.

Formula
P(s,t) = \{\text{all shortest paths from } s \text{ to } t\}
2

For each pair (s, t) the total number of shortest paths sigma(s, t) is counted. When multiple equally short paths exist, each is counted separately. This denominator represents the total shortest-path traffic between s and t without any constraint on routing.

Formula
\sigma(s,t) = \text{number of shortest paths from } s \text{ to } t
3

For each candidate node v (where v is neither s nor t), the number of those sigma(s, t) shortest paths that pass through v is recorded as sigma(s, t | v). The ratio sigma(s, t | v) / sigma(s, t) gives the fraction of shortest-path traffic between s and t that is routed through v.

Formula
\sigma(s,t \mid v) = \text{number of shortest paths from } s \text{ to } t \text{ passing through } v, \qquad \frac{\sigma(s,t \mid v)}{\sigma(s,t)}
4

These fractions are summed over the valid pairs (s, t) to produce the raw betweenness score C_B(v). For undirected graphs each unordered pair {s, t} is counted once, so the sum equals half of the sum over ordered pairs; this matches the (n-1)(n-2)/2 denominator in the next step. For directed graphs each ordered pair (s, t) is counted separately and the sum is divided by (n-1)(n-2) instead. A node that lies on large fractions of the shortest paths of many pairs accumulates a high sum, which indicates a structurally brokering position.

Formula
C_B(v) = \sum_{s \neq v \neq t} \frac{\sigma(s,t|v)}{\sigma(s,t)}
5

Raw scores grow with network size, which makes comparisons across networks of different sizes unreliable. For undirected graphs the score is divided by (n-1)(n-2)/2, and for directed graphs by (n-1)(n-2), which places normalized values between 0 and 1. A value of 1 is the maximum possible, reached when the node lies on every shortest path between all other pairs, and 0 means it lies on none. Brandes (2001) showed that all betweenness scores can be computed together rather than by repeating a separate search for each node; the abstract gives O(nm) time for unweighted and O(nm + n² log n) for weighted networks.

Formula
C_B^{\text{norm}}(v) = \frac{C_B(v)}{(n-1)(n-2)/2}

Common pitfalls

  • Treating high betweenness as equivalent to high degree without checking both; a peripheral node can rank high on betweenness while ranking low on degree.
  • Comparing raw (non-normalized) betweenness scores across networks of different sizes.
  • Ignoring edge direction in directed networks, which can misidentify brokers when flows are asymmetric.
  • Applying standard betweenness to weighted networks without confirming that edge weights are interpreted as costs (distances) rather than similarities in the shortest-path computation.
  • Relying on exact computation for very large networks without checking whether an approximation, such as sampling source nodes, is appropriate, and without checking whether the estimated ranking is stable across samples.

Frequently asked questions

How does betweenness centrality differ from degree centrality?

Degree centrality counts direct connections; a hub with many ties scores high. Betweenness centrality counts how often a node lies on shortest paths between others; a bridge connecting two sparse clusters can score high even with few direct ties. The two measures capture different aspects of structural importance.

Should I use normalized or raw betweenness scores?

Use normalized scores whenever you compare nodes across networks of different sizes or present results to readers unfamiliar with your network's scale. Raw scores are acceptable only for comparisons within a single fixed network where the normalizing denominator is the same for every node.

How do I handle weighted edges?

Set edge weights to represent distance or cost, not similarity, because shortest paths are defined by minimum total edge weight in the weighted case. If your weights represent strength or similarity, invert them (e.g., weight = 1/similarity) before computing betweenness. Check the weight option in your software to confirm how it is interpreted.

Is betweenness centrality meaningful for disconnected networks?

Shortest paths between nodes in different components do not exist, so those pairs cannot contribute fractions to the sum. Freeman's abstract states that the measures apply to connected or unconnected networks, but scores in a fragmented network are only comparable within a component or under a clearly stated rule for unreachable pairs. Either analyze each connected component separately or state how unreachable pairs were handled. Stress centrality is a related but different measure, not a drop-in substitute.

My network has millions of nodes — can I still compute betweenness centrality?

Exact computation with Brandes's algorithm scales with the number of nodes times the number of links, which can still be too slow at that size. Approximating by sampling a subset of source nodes is one option, and many implementations offer this. Because a sampled score is an estimate, check that the ranking of the nodes you care about is stable across different samples.

Related methods

Sources

  1. Freeman, L. C. (1977). A set of measures of centrality based on betweenness. Sociometry, 40(1), 35–41.

    Open DOI reference
  2. Brandes, U. (2001). A faster algorithm for betweenness centrality. Journal of Mathematical Sociology, 25(2), 163–177.

    Open DOI reference