Week 3 · play it before you read it

KINGPIN

You get a handful of hits. Remove characters from the real network and try to shatter its core; whoever loses their last route to the big cluster is cut off. Then three rival hitmen run the same contract: one always shoots the most connected, one the biggest broker, one at random. The map shows who is popular. It does not show who holds the network together, and the gap between those two is this whole post.

Play it
Week 3 · Centrality

The network shrugged.

This week the course handed us four definitions of importance: how many know you, how fast you reach everyone, how often you are the bridge, and whether the important know you. On the Marvel network all four crown Spider-Man, all four rank close to plain degree, and the whole game is in where they disagree. Then we applied last week's lesson to this week's measures and asked, for every impressive-looking centrality: compared to what? Spider-Man's famous betweenness did not survive the question. Black Widow's did. And when we shot the network eight times to see what falls apart, it barely noticed — hence the title.

Oddvar, David and Milena · 14 September 2026 · frozen snapshot of 26 August 2026 · undirected giant component, 277 characters, 1421 links, unless the arrows are the point

TL;DR

What we asked

  1. Who matters, by which definition? Degree, closeness, betweenness, eigenvector centrality and PageRank all answer a different question. Do they answer differently on Marvel, and who benefits?
  2. Which centralities survive the shuffle? Week 2 taught us that a number means nothing until you know what the degree sequence alone would produce. This week we aimed that tool at betweenness.
  3. Can you feel it? Betweenness is the least intuitive measure on the list, so we built a game where the difference between "most connected" and "holds the network together" is the difference between winning and losing.

The machine underneath: one BFS per character

Every number in the first half of this post comes out of breadth-first search: stand on a node, everything it links to is at distance 1, everything they link to that you have not seen is at distance 2, repeat. Run it from all 277 characters of the undirected giant component and you have every distance in the network.

PropertyValueComment
Mean distance2.67Between a random pair of characters
Pairs at distance 2 or 386%The network in one sentence
Diameter6The farthest two characters are six clicks apart
Radius3The best-placed character sees everyone within 3
The centre1 nodeSpider-Man, alone. Eccentricity 3.

Then keep the arrows, and the cosy small world falls apart the way week 1 hinted it would. The largest strongly connected component holds 229 of the 303 characters; only 69% of ordered pairs can reach each other by clicking at all; and Spider-Man, three undirected steps from everyone, can himself reach just 230 characters through his nine outgoing links. Our favourite pair: Box links to Guardian, one step, and the shortest route from Guardian's page back to Box is eight clicks. When the question involves reaching, spreading or flowing, check whether the arrows matter before computing anything.

Four answers to "who matters"

Each measure answers one question well. Degree: how many direct connections? In a directed network it splits in two, and the split is the week-1 story again: the Hulk is mentioned by 64 pages and mentions ten; Betsy Braddock is mentioned by seven and mentions 28. Famous and curious are different jobs. Closeness: how fast can you reach everyone? The inverse mean distance. Spider-Man's is 0.595, meaning 1.68 steps to a random character; the median character sits at 0.381. Betweenness: how often are you the bridge others must cross? The fraction of all shortest paths that pass through you. Eigenvector centrality / PageRank: are you connected to people who are themselves important? Circular on purpose, and the circularity resolves into the leading eigenvector of the adjacency matrix, or, for PageRank, into where a random clicker who sometimes teleports spends eternity.

#DegreeBetweennessPageRank (directed, α = 0.85)
1Spider-Man · 106Spider-Man · 0.235Spider-Man
2Hulk · 65Hulk · 0.105Hulk
3Wolverine · 63Wolverine · 0.093Wolverine
4Doctor Strange · 57Doctor Strange · 0.083Doctor Strange
5Deadpool · 41Deadpool · 0.056Black Cat
6She-Hulk · 37She-Hulk · 0.040Deadpool
7Phoenix Force · 32Hercules · 0.037Mayday Parker
8Scarlet Witch · 32Black Widow · 0.035Venom
9Black Panther · 31Phoenix Force · 0.026Phoenix Force
10Venom · 29U.S. Agent · 0.026Jean Grey

The rank correlations with degree are 0.85 (closeness), 0.88 (harmonic and eigenvector) and 0.91 (betweenness), and the degree and betweenness top tens share seven names. So on this network the measures mostly agree, and a bare top-ten list tells you almost nothing you did not know from counting links. The information is in the exceptions, bolded above, and each kind of exception has a mechanism.

The PageRank upsets. Black Cat is the 5th most important character by PageRank with an in-degree of 21; Mayday Parker is 7th with 14. The mechanism is the walk: a page splits its vote among its outgoing links, and Spider-Man, holder of the biggest vote in the network, links out to only nine characters. Anyone he links to inherits a ninth of everything. Being one of Spider-Man's nine doors is worth more than fifty ordinary links, which is also, in one sentence, why Google worked and why link farms stopped working.
Scatter of betweenness against degree on log-log axes, one point per character, forming a tight diagonal cloud. Spider-Man and Hulk sit at the top right on the diagonal. Hercules, Black Widow and U.S. Agent are ringed in gold above the cloud; Black Cat is ringed in red below it; Rockman is ringed in gold far to the upper left, a degree-2 character with the betweenness of a degree-20 one.
Betweenness against degree, both logarithmic; characters on no shortest path at all sit on the dashed rail. The cloud is a diagonal, which is the 0.91 correlation. The named characters are the reason the plot exists: gold sits far above the cloud, red far below it.

Compared to what, centrality edition

Here is the sentence we almost wrote: "Spider-Man is the critical broker of the Marvel universe: 23% of all shortest paths pass through him." Every word is true. Then we did to betweenness what week 2 did to everything else: 200 degree-preserving shuffles, recompute, and ask where the real value lands.

CharacterDegreeReal betweennessShuffledzVerdict
Spider-Man1060.2350.232 ± 0.010+0.3Not a finding. Any node with 106 links brokers this much.
Black Widow250.0350.016 ± 0.004+4.9A broker. Twice the betweenness her degree predicts.
Hercules260.0370.018 ± 0.005+4.2A broker. Position, not popularity.
U.S. Agent210.0260.012 ± 0.004+3.3A broker. Betweenness top ten from degree rank ~30.
Black Cat280.0070.020 ± 0.005−2.8Sheltered. A third of what her degree predicts. See below.
Scatter of betweenness z-score against the degree-preserving shuffle, against degree on a log axis. A grey band marks absolute z below 2, where most characters sit, including Spider-Man and Hulk. Black Widow, Hercules and U.S. Agent sit above the band. Black Cat sits below it. Rockman sits alone at z equals 50.
The same betweenness, re-expressed as "compared to what a node of your degree gets in a shuffled network". The famous names fall into the grey band: their brokerage is their degree. The gold names are genuinely in between. Rockman, top left, is in a category of his own.

The z-scores invert the fame ordering. Spider-Man, the Hulk and Wolverine sit inside the band, because a hub in any network with this degree sequence carries this many paths; their betweenness is real but it is not information. The characters the shuffle promotes are mid-degree characters whose links happen to be the only connection between regions: Black Widow and U.S. Agent connect otherwise-separate corners of the Avengers sprawl, Hercules bridges his mythological cast into the superhero core. And the single most surprising character in the entire network is Rockman, an Atlas-era leftover with two links and z = 50: one of his two neighbours connects to nothing else through anywhere but him, so every path to that corner squeezes through a degree-2 node. Betweenness can be enormous at degree two. That is the Krackhardt kite from the lecture, alive in real data.

Why Black Cat is the opposite of a broker. She has 28 links, comfortably top-fifteen degree, and less betweenness than the median character. The reason: 24 of her 28 neighbours are also Spider-Man's neighbours. Nearly every shortest path that could go through her has a one-step detour through the biggest hub in the network standing right next to her. High degree in somebody else's shadow buys popularity, and no control at all.

For completeness we also re-ran the week-2 assortativity number with this week's shuffles: r = −0.105 against −0.123 ± 0.011 shuffled. Still not a finding, still what a 106-link hub forces on a 277-node network. Some lessons keep.

Cliques: the strictest possible team

A clique is a set of characters in which every pair is linked, the strictest definition of a group the graph offers. The giant component has 1835 triangles, 893 maximal cliques, 477 distinct 5-cliques, and a clique number of 8: you can find eight characters whose 28 possible page-pairs all link, and you cannot find nine.

The largest clique is not unique, and that is the finding. There are six different 8-cliques, and every one of them contains the same six characters: Betsy Braddock, Cyclops, Emma Frost, Jean Grey, Rachel Summers and Wolverine. The other two seats rotate among Cable, Jubilee, Northstar, Storm and the Phoenix Force. Six X-Men are the load-bearing clique of the Marvel universe, with two guest chairs. No Avengers 8-clique exists: the Avengers are a bigger team, but their pages do not all link to each other, and a clique forgives nothing.

So we turned betweenness into a game

Betweenness is the measure of control: remove the broker and traffic reroutes or stops. The obvious way to feel that is to remove people. KINGPIN, linked at the top or right here, gives you a contract of 3, 5 or 8 eliminations on the giant component and one goal: make the biggest surviving cluster as small as possible. Every character who loses their last route to the core is cut off and stops counting. When the hits run out, three rival hitmen run the same contract on the same board, one shooting by degree, one by recomputed betweenness, one at random, and you are scored against all three.

Building the game forced us to learn three things the figures above do not show:

Single hitDegreeCut off beyond the victim
Spider-Man1065
Black Widow253
Doctor Strange572
War Machine161
Turbo51
Degree answers "who is popular". Betweenness answers "who controls the flow", and only after the shuffle. And "whose removal breaks the network" is a third question, about sets rather than nodes, that no per-node centrality fully answers. The game's scoreboard is the three questions side by side.

What surprised us

  1. Rockman. We went looking for brokers and the biggest surprise-by-shuffle in the network is a forgotten 1941 character with two links and a z-score of 50. Betweenness genuinely does not care about degree, it cares about doors.
  2. Black Cat has a third of the betweenness her degree predicts. Standing next to Spider-Man makes you popular and powerless at the same time, and the network can measure the difference.
  3. The 8-clique is six 8-cliques. The course page names one; enumeration finds six, all built on the same six X-Men. The largest clique is best read as a core with guest seats.
  4. You cannot shatter this universe. We built an assassination game and the honest headline is that eight perfect hits remove 6.5% of the core. The robustness was the finding; the game works because squeezing out those last few characters is genuinely hard.
  5. Spider-Man's betweenness is the least interesting number about him. It is enormous and it is exactly what his degree forces. His nine outgoing links, meanwhile, quietly decide fifth place in PageRank. The boring-looking number was the load-bearing one.

Reproduce it

One script for the post, one for the game's engine, and the game's algorithms are tested against networkx rather than trusted.

git clone https://github.com/Oddvar112/Social-Graphs-and-Interactions
cd Social-Graphs-and-Interactions

python scripts/analyse_week3.py          # every figure and number in this post (a few minutes)
python scripts/analyse_week3.py --quick  # the same with 30 shuffles, for a look
python scripts/test_kingpin_rules.py     # runs the game's shipped core.js under node,
                                         # diffs betweenness and both bots against networkx

python -m http.server 8000               # then open http://localhost:8000

Every number quoted in this post is written to data/stats_week3.json by analyse_week3.py. The game's graph engine lives in weeks/week3/game/core.js with no DOM in it, so the test executes the exact file the browser runs: its Brandes betweenness matches networkx to 10−13, its rival bots shoot the same characters in the same order, and the record hit-lists achieve exactly the core sizes the game claims.

← Back to all weeks ← Week 2 Open KINGPIN full screen →