Why it happens

Why Everyone Is About Six Handshakes Away

A few long-distance friendships make the world small. In a ring of 30 people who only know their neighbours, the far side is 8 handshakes away. Move 4 of the 60 links to random people and it's 4, and the average between two people falls from 4.14 to 3.09. Real social networks are full of such links.

A ring of 30, searched as links move across it

StopSmall world
Chance each link movesSeed
Links moved0 of 60Farthest from You…Average apart4.14Friends who know each other50%

30 people, 60 links

You★01234567891011121314151617181920212223242526272829

People at each distance from You

Handshakes apart, after each moved link

0246800.511.522.533.54links movedhandshakes
  • Farthest from You
  • Average, any two people

1/1430 people in a ring, each knowing the 2 on either side: 60 links. Nobody knows anyone across the ring, so a message from You to the far side, 15 places away, has to pass hand to hand.

  • CH1 You, and how many handshakes away each person is
  • CH3 a link moved across the ring

Watch the Python behind this model run, line by line

How to read the stage

Objective
Read the ring, the distance bars and the chart, and follow the handshake counts as links move.
How this step gets you there
The text names what each part of the stage shows, in the order the run plays it.

You sit at the top of a ring of 30, each person knowing the 2 on either side. A breadth-first search counts handshakes from You a layer at a time, and the number over each person is their distance. Then links move across the ring one at a time, the search runs again, and the chart tracks the farthest person and the average pair.

Why a few long links are enough

Objective
Explain why one long link shortens many chains at once while barely changing who knows whom nearby.
How this step gets you there
The text follows the default run's moves and their effect on the farthest distance and on clustering.

On the ring each handshake moves a message 2 places, so the far side takes 8. A link across the ring is a shortcut for everyone near either end, and for everyone near them. With seed 30, the second and third moved links both land on You, and the farthest person drops from 7 handshakes to 4. Friends who know each other only fall from 50% to 44%.

Watts and Strogatz's curve

Objective
Describe how distance and clustering respond differently as more links move, and where the small world sits.
How this step gets you there
The stage measures every pair at eight settings, and the text reads off the default run's values.

The second stage repeats their 1998 experiment on 200 people who each know 3 on either side. The ring alone puts two people 17.09 handshakes apart. Moving 1% of links, about 6 of 600, cuts that to 10.53, and 3% to 6.38, while 59% and 55% of friend pairs still know each other. Move every link and chains shrink to 3.14, but only 2% of friend pairs stay linked.

200 people, rewired a little more at a time

StopRewiring the ring
Networks per settingSeed
Links movednone

Average handshakes between two people

Pairs of friends who know each other

1/10200 people in a ring, each knowing the 3 on either side: 600 links. Each setting moves every link with some chance to a random person, builds 3 networks that way, and measures them.

  • CH1 distance (L)
  • CH2 clustering (C)

Watch the Python behind this model run, line by line

Milgram's letters

Objective
Know what Milgram's experiment did, how many chains finished, and how long they were.
How this step gets you there
The text gives the setup and the counts from the 1969 paper.

In the 1960s Stanley Milgram asked strangers to get a folder to one Boston stockbroker, passing it only to someone they knew on a first-name basis. In the study he published with Jeffrey Travers in 1969, 296 people started a chain, 217 sent it on, and 64 folders arrived. Those chains had 5.2 people in between on average. Milgram never used the phrase six degrees.

Facebook's 3.57

Objective
Compare Milgram's chains with a modern measurement of a whole network.
How this step gets you there
The text gives Facebook's two estimates and ties them back to the rewired ring.

In 2016 Facebook estimated the average distance between its 1.59 billion active users at 4.57 links: 3.57 people in between. Its 2011 study had found 3.74. Within the United States the figure was 3.46. A huge network with many far-flung friendships behaves like the rewired ring, only more so.

What the model leaves out

Objective
Say how the ring differs from real social networks and why Milgram's figure is uncertain.
How this step gets you there
The text names the model's simplifications and the main criticism of the experiment.

The ring stands in for living near people, and real friendships also cluster by school, work and family. Watts and Strogatz moved links uniformly at random; real long links follow moves, jobs and travel. Milgram's 5.2 counts only finished chains. Judith Kleinfeld pointed out that longer chains were likelier to break off, so the true average is probably higher, and that the starters weren't picked at random.

Practice the pattern

Objective
Recognize counting handshakes as breadth-first search, layer by layer.
How this step gets you there
The text maps the search to a queue and links two practice problems that use it.

Counting handshakes from You is breadth-first search: a queue that finishes everyone at distance 1 before anyone at distance 2, so each count is final when it's set. Binary Tree Level Order Traversal asks for exactly those layers, and Number of Islands floods outward through a queue the same way.

Questions

Is it really six degrees of separation?
Roughly, depending on the network. Milgram's finished chains had 5.2 people in between. A 2003 email version by Peter Dodds and colleagues, with 24,163 chains aimed at 18 targets, found chains of about six. Facebook measured 3.57 in 2016, among its own users only.
Where does the phrase six degrees of separation come from?
From John Guare's 1990 play Six Degrees of Separation, filmed in 1993. The idea is older: in Frigyes Karinthy's 1929 short story Chains, characters bet that any two people are linked by at most five acquaintances.
What is a small-world network?
Watts and Strogatz's 1998 name for a network that is clustered like a lattice, with friends of friends often friends, yet has short chains like a random network. They found it in film actors (3.65 links apart on average), the western American power grid and the nervous system of the worm C. elegans.
Why don't more local friends make the world smaller?
Local links join people who were already close, so they shorten few chains. One link to someone far away shortens the chain between everyone around you and everyone around them. On the ring a handshake covers 2 places; a moved link can cover 15.

Practice the pattern

Counting handshakes from You is breadth-first search: a queue that finishes everyone at distance 1 before anyone at distance 2, so each count is final when it's set. Binary Tree Level Order Traversal asks for exactly those layers, and Number of Islands floods outward through a queue the same way.

More of how it works