← All animations

🕸️ Scale-Free Networks

In a random network everyone has roughly the same number of connections — a tidy bell curve. But most real networks (the web, citations, airlines, the proteins in your cells) look nothing like that: a handful of wildly over-connected hubs tower over a sea of nearly isolated nodes. That lopsided "rich-get-richer" shape is a power law, and a network that has it is called scale-free. Scroll through to watch hubs grow — and discover why such networks shrug off random failures yet shatter under a targeted attack.

1. Preferential attachment — how hubs are born

Grow a network one node at a time. Each newcomer throws out a few links, and — in the Barabási–Albert model — it prefers to connect to nodes that are already popular: the chance of linking to a node is proportional to how many links it already has. The rich get richer, so a few early, lucky nodes snowball into giant hubs. Flip to random attachment (every node equally likely) and the hubs vanish — every node ends up near-average. The right-hand panel plots the degree distribution on log–log axes: preferential attachment makes a straight line (a power law); random attachment makes a hump (a bell curve) that drops off fast.

12 nodes · max degree 0

2. Robust yet fragile — random failure vs. targeted attack

Here's the twist that makes hubs matter. Take a finished scale-free network and start deleting nodes. Knock out nodes at random and the network barely notices: you almost always hit one of the many low-degree nodes, and the giant connected component stays mostly intact. But target the hubs — remove the highest-degree nodes first — and the whole thing shatters into disconnected islands after only a few removals. Same network, opposite fates. The bar tracks the size of the largest surviving component.

Removed 0 · largest component 100%

3. Why "scale-free," and where it shows up

The whole story in four ideas:

Real examples are everywhere: web links (a few sites get most inbound links), scientific citations, airline route maps (mega-hub airports), the internet's router topology, and protein-interaction networks in the cell. The same math even explains epidemics: super-spreaders are social hubs, which is why targeting the most-connected people — not random ones — is the efficient way to halt an outbreak.