Link Graph Encyclopedia

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 Sk,pS_{k,p}: a kk-clique (every pair of the kk nodes linked both ways) next to a directed cycle of pp 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:

A measure that satisfies only the second half is marked “only kk” below, and one that satisfies only the first, “only pp”.

Harmonic centrality passes. A clique node is at distance 1 from the other k−1k - 1 clique nodes, so it scores k−1k - 1. A cycle node is at distances 1,2,…,p−11, 2, \ldots, p - 1 from the others along the cycle, so it scores 1+12+⋯+1p−1=Hp−11 + \tfrac12 + \cdots + \tfrac{1}{p-1} = H_{p-1}, the harmonic number, which grows like ln⁡p\ln p without bound. Each side wins once it is large enough. Closeness fails: a clique node’s closeness is 1/(k−1)1/(k-1) and a cycle node’s is 2/(p(p−1))2/(p(p-1)), so growing the clique lowers its score. PageRank fails both halves: every node of Sk,pS_{k,p} gets exactly 1/(k+p)1/(k + p), whatever the sizes.

The density axiom

Now join a kk-clique and a pp-cycle by a single bidirectional arc between a clique node xx and a cycle node yy. Call the graph Dk,pD_{k,p}. When k=pk = p both sides have the same number of nodes, but the clique has far more arcs. A measure satisfies the density axiom if, for k=pk = p, xx scores strictly higher than yy: 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 yy also carries the cycle’s own traffic: in a directed cycle, every path between two other nodes that wraps past yy 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 xx and yy with no arc from xx to yy, adding the arc x→yx \to y strictly increases yy’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 yy’s closeness: nodes that could not reach yy before now can, and each adds a term to yy’s sum of distances. HITS can shift its dominant eigenvector away from yy’s part of the graph, and eigenvector centrality can leave yy 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 kk yes yes
Harmonic yes yes yes
Closeness no no no
Lin’s index only kk no no
Betweenness only pp no no
Dominant eigenvector only kk yes no
Seeley’s index no yes no
Katz only kk yes yes
PageRank no yes yes
HITS only kk yes no
SALSA no yes no

Degree satisfies only the kk half of the size axiom because cycle nodes always have in-degree 1, however long the cycle. Betweenness satisfies only the pp 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:

Later work by Boldi, Luongo and Vigna added rank monotonicity, which asks that a new link to yy never let a node that was below yy overtake it. That axiom, too, separates measures that look alike on paper.

References

Edit this entry on GitHub