Image: David Eppstein, CC0The giant component, or why a random graph suddenly connects
Take 1,000 points and join pairs of them at random, one edge at a time. After 300 edges the graph is a scatter of small pieces, the largest with perhaps 15 points. After 450 edges it has around 50. After 550 it has over a hundred, and after 1,000 edges it has about 800 of the 1,000 points, with the rest in tiny fragments. The change happens around 500 edges, which is when the average point has one neighbour, and it is sudden. Paul Erdős and Alfréd Rényi described it in 1960 and called it the double jump. The cover picture of this post is a random graph on 1,000 vertices at exactly that moment.
The model
The random graph G(n, p) has n vertices, and each of the n(n minus 1)/2 possible edges is present with probability p, independently of the others. Edgar Gilbert at Bell Labs defined this version in 1959; Erdős and Rényi in the same year studied the variant with a fixed number of edges chosen at random, and the two behave alike. The expected degree of a vertex is p(n minus 1), so the interesting range for a sparse graph is p = c/n for a constant c, where c is the average degree. The 1960 paper, On the evolution of random graphs, is free to read from the Rényi Institute, and Unit 11 of the Graph Theory Masterclass builds the probability needed to follow it from scratch.
What Erdős and Rényi proved
If c is less than 1, then with probability tending to 1 as n grows, every component of G(n, c/n) has at most a constant times log n vertices, and almost all components are trees. If c is greater than 1, there is one component with about βn vertices, where β is the unique positive solution of β = 1 minus e to the power minus cβ, and every other component again has at most a constant times log n vertices. At c = 1 itself the largest component has about n to the power 2/3 vertices. The jump from log n to n to the power 2/3 to a positive fraction of n, within a vanishing range of c, is what the name double jump refers to.
Some values of β: for c = 1.1 it is 0.176, for c = 1.5 it is 0.583, for c = 2 it is 0.797, for c = 3 it is 0.941. Just above the threshold the giant component is small; by c = 2 it holds four fifths of the vertices. The equation for β has no closed-form solution and is solved numerically in a few lines.
Why it happens
Explore the component of a vertex v by breadth-first search. Vertex v has a binomial number of neighbours, with mean about c. Each neighbour, in turn, has about c new neighbours of its own, since the graph is sparse and the neighbours of different vertices rarely overlap at the start. So the exploration behaves like a branching process in which each individual has a Poisson number of children with mean c. A branching process with mean c below 1 dies out with probability 1, after a number of generations and a total size that are both small, which is the small-component case. With mean c above 1 it dies out with probability 1 minus β and survives forever with probability β; survival corresponds to the exploration reaching a positive fraction of the graph, and the extinction probability satisfies exactly the equation above, since a process survives when at least one of its Poisson(c) children's processes survives. That is the heuristic. Turning it into a proof means controlling the overlaps that the heuristic ignores, and the cleanest version, by Béla Bollobás and Oliver Riordan in 2012, is the research spotlight of Unit 11; their paper is on the arXiv.
The window
How narrow is the transition? Bollobás showed in 1984 that the critical window has width about n to the power minus 1/3 around c = 1: for c = 1 + λ n to the power minus 1/3 with λ fixed, the largest components all have size of order n to the power 2/3 and there are several of comparable size, while for λ large the giant has separated from the rest. For n = 1,000 the window is about 0.1 wide in c, which is 50 edges, so in the simulation above the jump looks abrupt at the scale of hundreds of edges and gradual at the scale of tens. The structure inside the window, where the largest component is still deciding which of several candidates it will be, is one of the most studied objects in probability.
Connected at last
The giant component is not the whole graph. At c = 3 about 6 percent of the vertices are still outside it, most of them isolated. The graph becomes connected only when the isolated vertices disappear, and that happens at p = (log n + x)/n: the expected number of isolated vertices is then about e to the power minus x, so for p below log n/n there are many and for p above it there are none, with probability tending to 1. For n = 1,000 the threshold is p = 0.0069, about 3,450 edges, seven times the number needed for the giant component. The sequence of thresholds, for the first edge, the first triangle, the giant component, connectivity, and a Hamilton cycle, is the table at the end of Unit 11.
What it is for
The random graph is the baseline against which every real network is measured. The internet, a friendship graph, and a protein interaction network all have a giant component, and the question is whether its size and its threshold match the random graph's. They do not, as another post on this blog explains, because real networks have hubs and clustering; the comparison is what reveals the structure. In epidemiology the giant component is the outbreak: if each infected person infects on average c others and c exceeds 1, the epidemic reaches a positive fraction of the population, and β is the final size. The number c is the basic reproduction number of the disease, and the equation 1 minus β = e to the power minus cβ for the final size of an epidemic in a well-mixed population was known to Kermack and McKendrick in 1927, three decades before random graphs existed.
Try it
In NetworkX, which runs in the browser through the Pyodide console that is the tool of the week for Unit 11, the simulation is three lines: generate G(1000, c/1000), list the connected components, take the largest. For c = 0.5 the answer is around 10 to 15; for c = 1 it is around a hundred and varies wildly from run to run; for c = 2 it is close to 797, which is 0.7968 times 1,000. Repeat each ten times and average, and the curve of β against c emerges from the noise, with the kink at c = 1 exactly where the 1960 paper puts it.


