Centrality
Axioms for centrality
Boldi and Vigna's three tests (size, density and score monotonicity) check whether a centrality measure agrees with intuition on graphs simple enough that the right answer is obvious. Only harmonic centrality passes all three.
With dozens of centrality measures in use, how do you pick one? In 2014 Paolo Boldi and Sebastiano Vigna proposed to test measures against small graphs where everyone agrees on the right answer, the way physical theories are tested against simple experiments. They defined three axioms, checked eleven classical measures against them, and found that only one, harmonic centrality, satisfies all three. Common Crawl, which had Vigna’s help building its graph tooling, has ranked hosts by harmonic centrality since 2017.
The size axiom
Consider the graph : a -clique (every pair of the nodes linked both ways) next to a directed cycle of nodes, with no arcs between the two. Which nodes should be more central?
Intuition says size should win. If the cycle is long enough, its nodes should beat the clique’s, because they belong to a larger community; if the clique is large enough, its nodes should win instead. Formally, a measure satisfies the size axiom if:
- for every there is a such that for all , cycle nodes score strictly higher than clique nodes; and
- for every there is a such that for all , clique nodes score strictly higher than cycle nodes.
A measure that satisfies only the second half is marked “only ” below, and one that satisfies only the first, “only ”.
Harmonic centrality passes. A clique node is at distance 1 from the other clique nodes, so it scores . A cycle node is at distances from the others along the cycle, so it scores , the harmonic number, which grows like without bound. Each side wins once it is large enough. Closeness fails: a clique node’s closeness is and a cycle node’s is , so growing the clique lowers its score. PageRank fails both halves: every node of gets exactly , whatever the sizes.
The density axiom
Now join a -clique and a -cycle by a single bidirectional arc between a clique node and a cycle node . Call the graph . When both sides have the same number of nodes, but the clique has far more arcs. A measure satisfies the density axiom if, for , scores strictly higher than : being embedded in a denser neighbourhood should help.
All spectral measures pass this test, since the dominant eigenvector concentrates where arcs are dense. Closeness, Lin’s index and betweenness fail it. Betweenness fails because also carries the cycle’s own traffic: in a directed cycle, every path between two other nodes that wraps past runs through it, while the clique’s nodes are all adjacent and carry none of each other’s paths.
Score monotonicity
The third axiom is about change. A measure satisfies score monotonicity if, for every graph and every pair of nodes and with no arc from to , adding the arc strictly increases ’s score. Receiving a new link should always help.
It sounds trivial, yet several famous measures fail it. Adding an arc never lengthens a distance, yet it can lower ’s closeness: nodes that could not reach before now can, and each adds a term to ’s sum of distances. HITS can shift its dominant eigenvector away from ’s part of the graph, and eigenvector centrality can leave at zero: in a graph made of a clique and two isolated nodes, a link between the isolated nodes changes nothing.
The results
Boldi and Vigna’s table:
| Measure | Size | Density | Score monotonicity |
|---|---|---|---|
| Degree | only | yes | yes |
| Harmonic | yes | yes | yes |
| Closeness | no | no | no |
| Lin’s index | only | no | no |
| Betweenness | only | no | no |
| Dominant eigenvector | only | yes | no |
| Seeley’s index | no | yes | no |
| Katz | only | yes | yes |
| PageRank | no | yes | yes |
| HITS | only | yes | no |
| SALSA | no | yes | no |
Degree satisfies only the half of the size axiom because cycle nodes always have in-degree 1, however long the cycle. Betweenness satisfies only the half because clique nodes lie on no shortest paths between other nodes, so they score zero, while a long cycle routes many paths through each of its nodes.
What the axioms do and do not say
The axioms are tests, not a definition. A measure that fails one is not useless; it formalises a different notion of importance. Betweenness is the right tool for finding bridges and bottlenecks precisely because it ignores density.
The tests do expose behaviour that matters on the web:
- Closeness fails everything because of how it treats unreachable nodes. On a web graph, where most pairs cannot reach each other, that is fatal (see closeness centrality).
- PageRank fails size because each node divides its score among its out-links. In a graph made of separate regular communities, such as a clique and a cycle, every node gets the same score, whatever the communities’ sizes.
- Harmonic centrality passes all three, at the cost of being expensive to compute exactly: it needs the distances from every node. The HyperBall algorithm makes approximate harmonic centrality affordable on graphs with billions of arcs.
Later work by Boldi, Luongo and Vigna added rank monotonicity, which asks that a new link to never let a node that was below overtake it. That axiom, too, separates measures that look alike on paper.
References
- Boldi, P., & Vigna, S. (2014). Axioms for centrality. Internet Mathematics 10(3–4), 222–262.
- Boldi, P., Luongo, A., & Vigna, S. (2017). Rank monotonicity in centrality measures. Network Science 5(4), 529–550.
- Sabidussi, G. (1966). The centrality index of a graph. Psychometrika 31(4), 581–603.
Links here
Betweenness centrality · Centrality · Closeness centrality · Degree centrality · Eigenvector centrality · Harmonic centrality · HITS (hubs and authorities) · Katz centrality · PageRank · SALSA