The Sudden Giant
Join random pairs of dots, one link at a time. For a while you get only scraps. Then, at a precise moment, the scraps fuse into one giant web that holds most of the dots. The moment comes when the average dot has one link.
Scatter a hundred buttons on the floor. Pick two at random and tie them together with a thread. Pick another random pair, tie them, and keep going. Every so often, lift a button and see how many others come up with it.
At first, lifting a button brings up one or two others at most. The threads are too few. But somewhere along the way, something changes abruptly: lift almost any button and a great tangle comes with it, most of the floor rising at once. Nothing about any single thread was special. The change belongs to the network as a whole.
Random networks
The mathematicians Paul Erdős and Alfréd Rényi studied random networks in a series of papers starting in 1959, fixing the number of links and placing them at random; in the same year Edgar Gilbert studied the version used in the figure below, in which every pair gets its own independent chance. For large networks the two behave the same. The recipe is the simplest imaginable: take N nodes, and link each pair independently with the same small probability. No pair is favoured. No node is special. Everything that happens comes from chance alone.
The one dial that matters is the average degree: on average, how many links does a node have? Turn it up and watch the largest connected piece, shown in teal.
The random network dial
Slide the average degree slowly from 0 upward, or press Sprinkle to add links gradually. Watch around 1.
Why exactly one?
Imagine exploring outward from a node, ripple-style, as in Chapter 3. Each time you reach a new node, it offers you its other links to follow. In a big random network, a node you arrive at has on average about as many other links as the average degree, and they mostly lead to nodes you have not seen yet.
- If the average degree is below 1, each step of the exploration finds, on average, fewer than one new node to continue from. The search dwindles and dies. Every piece is small.
- If it is above 1, each step finds on average more than one new node. The search can snowball, and the snowballs from different starting points all run into each other: one giant piece.
Keep that argument in your pocket. It is exactly the argument for whether an epidemic fizzles or explodes, and Chapter 10 will reuse it with a new name: the reproduction number.
In a large random network, a giant connected component appears when the average degree passes 1: below it every piece is tiny, above it one piece holds a sizeable fraction of all nodes.
The giant component curve
Pick a network size and add a few more random runs. Compare the coloured runs with the dashed curve for an infinitely large network.
The dashed curve has a tidy description. If S is the share of nodes in the giant piece of a very large random network:
Notice too what the giant does not do: it does not instantly swallow everyone. Even at an average degree of 3, a few percent of nodes remain stranded on their own or in tiny islands. For the whole network to be connected, with no node left out, the average degree has to grow to about the natural logarithm of N, which for 150 nodes is about 5.
Same idea, different network: percolation
The sudden giant is not special to random networks. Picture coffee seeping through ground beans, water through porous rock, or a fire jumping from tree to tree. Each is a network in which some links are open and others are not, and the question is always the same: is there a connected path all the way across? The mathematics of that question, percolation theory, was begun in 1957 by Simon Broadbent and John Hammersley.
Percolation on a grid
Each link of the grid is open with the chance you set. Slide it and watch for a teal cluster that reaches from the left edge to the right.
Notice the numbers. At the grid’s threshold each node has on average 4 × ½ = 2 open links, not 1 as in the random network. Two things raise it. First, the “1” is special to random networks: on a loop-free network where everyone has 4 links, a node reached along a link has 3 others to pass on, so the branching argument already gives a threshold of one third of the links open, or 4/3 open links per node. Second, the grid’s many small squares waste open links on nodes the cluster has already reached, pushing the threshold up to 2. The threshold always exists; its value depends on the shape of the network. Keep that in mind for Chapter 10, where the same fact decides whether an epidemic can cross a population.
Real networks are not built by tossing coins for every pair. Friendships cluster, cities link to nearby cities, and some nodes attract far more links than chance would allow. The random network is valuable precisely because it is the plain baseline: when a real network differs from it, the difference tells you something. The next two chapters are about the two biggest differences: triangles and hubs.
Intuition check
A random network has 10,000 nodes and 4,000 links, placed at random. Which picture should you expect?
What you now see
- A random network links every pair of nodes with the same small chance; its key dial is the average degree.
- At an average degree of 1, scattered scraps suddenly fuse into a giant component: a phase transition.
- The reason is a branching argument: below 1, explorations die out; above 1, they can snowball.
- The same kind of threshold appears in percolation on grids and other networks; its value depends on the network’s shape (about 2 links per node on a square grid).
- Random networks are the baseline against which real networks, with their triangles and hubs, are measured.