Scale-Free Networks: Why the Internet and Social Networks Have Hubs

simulator intermediate ~8 min
Loading simulation...
BA Network: N=100, m=2, gamma approx 3

A Barabasi-Albert network with 100 nodes and m=2 produces a scale-free topology where P(k) ~ k^(-3). A few hub nodes accumulate most connections through preferential attachment.

Formula

P(k) ~ k^(-gamma)
P(edge to node i) = k_i / sum(k_j)

The Rich Get Richer

In 1999, Albert-Laszlo Barabasi and Reka Albert discovered that many real-world networks — from the World Wide Web to biological protein interactions — share a surprising property: their degree distribution follows a power law. Unlike random networks where most nodes have roughly the same number of connections, scale-free networks are dominated by a few highly connected hubs while the vast majority of nodes have only a handful of links.

Preferential Attachment

The Barabasi-Albert model explains this through preferential attachment: when a new node joins the network, it is more likely to connect to nodes that already have many connections. The probability of connecting to node i is P(i) = k_i / sum(k_j), where k_i is the degree of node i. This 'rich-get-richer' mechanism produces a power-law degree distribution P(k) ~ k^(-gamma) with gamma approximately 3.

Robustness and Fragility

Scale-free networks display a remarkable duality. They are extremely robust against random failures — you can remove a large fraction of nodes at random and the network remains connected, because most removed nodes are low-degree. However, they are catastrophically vulnerable to targeted attacks on hub nodes. Removing just a few percent of the highest-degree nodes can shatter the network into disconnected fragments.

This property has profound implications for infrastructure design, cybersecurity, and epidemic control. Understanding which nodes are hubs — and protecting them — is essential for maintaining network integrity.

Try It Yourself

Use the simulation above to build a scale-free network. Increase the number of nodes and watch how hubs naturally emerge. Then use the attack slider to compare random failures versus targeted hub removal. Notice how the largest connected component collapses under targeted attack but barely changes under random failure.

FAQ

What is a scale-free network?

A scale-free network is a network whose degree distribution follows a power law P(k) ~ k^(-gamma), typically with gamma between 2 and 3. This means most nodes have few connections while a small number of hubs have disproportionately many.

What is the Barabasi-Albert model?

The Barabasi-Albert (BA) model generates scale-free networks through two mechanisms: growth (new nodes are added over time) and preferential attachment (new nodes prefer to connect to already well-connected nodes). The probability of connecting to node i is proportional to its degree k_i.

Why are scale-free networks vulnerable to targeted attacks?

Because a few hub nodes hold the network together. Removing just 5-10% of the highest-degree nodes can fragment the entire network, while removing the same fraction randomly has almost no effect. This is called the robustness-yet-fragility property.

What real networks are scale-free?

Many real-world networks exhibit scale-free properties: the World Wide Web, protein interaction networks, airline route networks, citation networks, and some social networks. However, recent research debates the prevalence of strict power-law distributions.

Sources

Embed

<iframe src="https://homo-deus.com/lab/network-science/scale-free-networks/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub