Small Worlds
Your friends tend to know each other, which makes your world feel small and local. Yet a few chains of acquaintance can reach almost anyone. Both are true at once, and a handful of long-range shortcuts is the reason.
You meet a stranger on a train, start talking, and within minutes discover that your cousin went to school with their neighbour. “Small world!” you both say. It happens so often that it hardly feels like a coincidence. And it isn’t one: it is a property of how human networks are shaped.
To see that shape you need two measurements. One you already have: path length, the number of links between two people, averaged over all pairs. The other is new, and it starts with a triangle.
Your friends know each other
Think of three of your friends. Chances are, some of them know each other: from school, from work, from your birthday parties. Each such pair closes a triangle: you, friend one, friend two. Network scientists measure this with the clustering coefficient. For one person, it is the share of their pairs of friends who are themselves friends. For a whole network, average it over everyone with at least two friends.
Triangle counter
In Inspect mode, click a person to see their friends and which pairs of friends know each other. Switch to Edit links to add or cut friendships.
Real social networks are full of triangles, far more than a random network with the same number of links would have. In a random network, two of your friends are linked only by chance, which for a large sparse network is a tiny chance. Real friends are introduced by friends, share workplaces and neighbourhoods, and so cluster.
One caution when you meet published numbers: “clustering” is measured in two common ways. This book averages each person’s own score, as Watts and Strogatz did. The other version, often called transitivity, pools the whole network: of all the pairs of links that share a node, what share close into a triangle? In networks with big hubs the two can differ a lot, because a hub has a vast number of friend pairs, most of them unlinked, and that weighs heavily in the pooled version but counts as just one person in the average.
The clustering coefficient measures how often two of a node’s neighbours are also neighbours of each other; social networks score far higher than random networks of the same size.
Letters across a continent
In 1967 the social psychologist Stanley Milgram published a famous experiment. He asked people in the American Midwest to get a letter to a stranger in Massachusetts, with one rule: they could only pass it to someone they knew on a first-name basis, who would pass it on by the same rule. The chains that made it to the target had passed through roughly five to six intermediaries on average.
Most of the letters never arrived: people lost interest, or did not know whom to send them to. The short chains are the ones that completed, and later critics pointed out how much that, and the way starters were chosen, could colour the result. The catchphrase “six degrees of separation” was popularised by John Guare’s 1990 play of that name, not by Milgram, and the idea itself appears even earlier, in a 1929 short story by the Hungarian writer Frigyes Karinthy. Later, much larger studies of email and online networks have also found short average paths, but “six” is a slogan, not a law of nature.
So here is the puzzle. Triangles make networks local: your friends’ friends are mostly your friends already, so each step outward reaches few new people. That should make paths long. Yet human paths are short. How can a network be both cliquey and small?
A few shortcuts shrink everything
In 1998 Duncan Watts and Steven Strogatz answered with a beautifully simple experiment. Start with people standing in a ring, each linked to their nearest few neighbours on either side. This ring is very clustered (your neighbours are neighbours of each other) but paths are long, since a message must crawl around the ring. Now, with some small probability, take each link and rewire one of its ends to a random person anywhere on the ring.
Watts–Strogatz rewiring
Slide the rewiring probability from 0 upward (the scale is logarithmic). Click any person on the ring to see how far everyone is from them.
The sweet spot in the middle is what Watts and Strogatz called a small world: paths nearly as short as in a random network, clustering nearly as high as in the ring. They found this combination in the networks they examined, including the collaboration network of film actors, the electrical power grid of the western United States, and the neural wiring of the tiny worm C. elegans.
A small-world network has short average paths and high clustering; a few random long-range links are enough to shrink path lengths long before they destroy the local triangles.
How far can you reach?
Small worlds have a playful side. Mathematicians track their Erdős number: the collaboration distance to the prolific Paul Erdős, who co-wrote papers with hundreds of people. Write a paper with Erdős and your number is 1; write one with a co-author of his and it is 2, and so on. Film fans play the same game with actors who appeared in films together. In both networks, most people turn out to be only a few steps from the centre.
The reason is how fast reach can grow. Below is a ring of 1,000 people, each linked to their five nearest neighbours on either side, the same size of ring that Watts and Strogatz used. The bars show how many people you can reach within 1, 2, 3, … steps.
Within reach
Slide the rewiring probability and watch how many people come within a few steps.
Short paths existing is one thing; people finding them is another. Milgram’s senders had no map of the network, yet some chains arrived. Why ordinary people can steer letters along short chains using only local knowledge is a further puzzle, studied by Jon Kleinberg and others; it turns out to depend on how the long-range links are arranged, not just how many there are.
Intuition check
Which of these networks deserves the name “small world” in the Watts–Strogatz sense?
What you now see
- The clustering coefficient measures triangles: how often a node’s neighbours are linked to each other.
- Milgram’s completed letter chains were short, about five to six intermediaries, though most chains never completed; “six degrees” is a slogan from a 1990 play.
- A small world combines short paths with high clustering, and a few random shortcuts are enough to produce it.
- Shortcuts shrink path length long before they destroy clustering, because each shortcut serves everyone near its ends.
- Reach that multiplies at each step, rather than adding, is why a few steps can span a huge network.