How a giant component appears

“percolated” somewhere in between

An empty graph has components of size 1; a complete graph has one component of size \(n\). Drag the mean degree \(c\) and watch a single component swallow a finite fraction of the network once \(c\) passes 1. Every pair in this \(G_{n,p}\) sample is linked with probability \(p=c/(n-1)\); the largest component is drawn in blue. Turn on “Color all components” to give every other component with two or more nodes its own color; isolated nodes stay grey.

1Erdős–Rényi: one self-consistent equation

From the lecture notes: ER_percolation.pdf (8 pages, 10.9 MB)

In Gilbert’s version of the random graph, \(G_{n,p}\), each of the \(\binom{n}{2}\) pairs is linked independently with probability \(p\). Instead of the giant component itself, track

why the complement? it’s more convenient!

\(u\): the probability that a randomly chosen node does not belong to the giant component.

Node \(i\) stays outside if, for every other node \(j\), either there is no edge (probability \(1-p\)) or there is an edge but \(j\) is itself outside (probability \(pu\)). Strictly, the \(u\) needed here is the probability that \(j\) is not connected to the giant component through its other edges, excluding the one to \(i\); for \(G_{n,p}\) with \(n\to\infty\) this edge-following probability equals the node probability, because the excess degree distribution is again Poisson with mean \(c\) (section 4). Treating the \(n-1\) branches as independent ignores short loops and correlations between branches, so the finite-\(n\) expression below is a heuristic; it becomes exact only in the locally tree-like limit \(n\to\infty\). With \(p=c/(n-1)\),

\[u\simeq(1-p+pu)^{n-1}=\Big[1-\frac{c}{n-1}(1-u)\Big]^{n-1}\;\xrightarrow{\;n\to\infty\;}\;e^{-c(1-u)}.\]

first given by Erdős and Rényi in 1959

Our original interest is the fraction \(S=1-u\) of nodes in the giant component, which obeys

\[S=1-e^{-cS}.\]

There is no solution in elementary functions,1 but the graphical solution says everything: \(y=1-e^{-cS}\) is concave with slope \(c\) at the origin, so it crosses \(y=S\) a second time only when \(c>1\).

1 With the principal branch \(W_0\) of the Lambert \(W\) function, \(S=1+W_0(-c\,e^{-c})/c\) for \(c>1\). The curves on this page solve the equation numerically. ↩

Simulate
Graphical solution. Grey curves: \(c=0.5,\,1,\,1.5\). Blue: your \(c\). The dot marks the nontrivial root when it exists.
Giant component size \(S(c)\) for \(n\to\infty\). Hollow dot: the sample above. Filled dots: ensemble averages of the largest component fraction.

2Near the threshold: \(\beta=\gamma=1\)

From the lecture notes: ER_percolation.pdf (8 pages, 10.9 MB)

Expanding \(S=1-e^{-cS}\) around \(S=0\),

\[S\approx 1-\Big(1-cS+\tfrac12 c^2S^2\Big)=cS-\tfrac12c^2S^2\;\Rightarrow\;1=c-\tfrac12c^2S,\]
\[S\approx\frac{2(c-1)}{c^2}\propto(c-c^*)^{1}\propto(p-p^*)^{1}\quad(c\to1^+),\qquad p^*=\frac{1}{n-1},\]

so \(S\propto(p-p_c)^\beta\) with \(\beta=1\).

in agreement with the mean-field universality class of percolation

The susceptibility analogue is the average size of the (non-percolating) component to which a randomly chosen node belongs. For the random graph (Newman, Sec. 11.6),

\[\langle s\rangle=\frac{1}{1-c+cS}.\]

From below, \(S=0\) and \(\langle s\rangle=(1-c)^{-1}\). From above, \(S\approx\frac{2}{c^2}(c-1)\), so

\[\langle s\rangle\approx\frac{1}{1-c+\frac{2}{c}(c-1)}=\frac{1}{c-1}\,\frac{1}{-1+\frac{2}{c}}\approx(c-1)^{-1}\quad(c\to1^+),\]

giving \(\gamma=1\), with the same amplitude on both sides.

\(\langle s\rangle\) against \(c\), as in Newman’s Fig. 11.5. Dots: simulations, excluding the largest component (run them in section 1). Finite \(n\) rounds off the divergence.
Log–log: \(S\) against \(c-1\). Dashed: \(2(c-1)\). Slope 1 means \(\beta=1\).
Log–log: \(\langle s\rangle\) against \(|c-1|\). Pink: \(c<1\). Blue: \(c>1\). Both approach slope \(-1\).

Effective exponents, computed from the exact solution

The local slopes \(d\ln S/d\ln(c-1)\) and \(-d\ln\langle s\rangle/d\ln|c-1|\) converge to 1. Compare with percolation in finite dimensions (Christensen & Moloney, Complexity and Criticality, Table 1.2):

Exponent\(d=2\)\(d=3\)\(d=4\)\(d=5\)\(d\ge6\)Bethe
\(\beta:\;P_\infty\propto(p-p_c)^\beta\)5/360.4181(8)0.657(9)0.830(10)11
\(\gamma:\;\chi\propto|p-p_c|^{-\gamma}\)43/181.793(3)1.442(16)1.185(5)11

3The same universality class as the Bethe lattice

From the lecture notes: ER_percolation.pdf (8 pages, 10.9 MB)

For bond percolation on a Bethe lattice with coordination number \(z\) (equations as reproduced in the lecture notes from Prof. Young-Sul Cho’s lecture slides), let \(A\) be the probability that a branch is connected to the infinite cluster. Then

\[A=1-(1-pA)^{z-1},\qquad P_\infty=1-(1-pA)^{z},\qquad p_c=\frac{1}{z-1},\]

and \(P_\infty\propto(p-p_c)\), so \(\beta=1\) again. For \(z=3\) it closes: \(P_\infty=1-\big(\frac{1-p}{p}\big)^3\) for \(p\ge\frac12\).

the same universality class!

Written at finite \(n\), the heuristic Erdős–Rényi equation of section 1 (independent branches; exact only as \(n\to\infty\)) has exactly the Bethe form under the dictionary below. Plotting against \(c=p(z-1)\), the Bethe curve tends to the Erdős–Rényi \(S(c)\) as \(z\) grows.

Erdős–RényiBethe lattice
\(u\)\(1-A\)
\(n-1\)\(z-1\)
\(p_c=1/(n-1)\)\(p_c=1/(z-1)\)
\(u\simeq\big[1-\frac{c}{n-1}(1-u)\big]^{n-1}\)\(1-A=(1-pA)^{z-1}\)
Purple: \(P_\infty\) on the Bethe lattice against \(c=p(z-1)\) (defined up to \(p=1\)). Faint purple: \(z=3\). Dashed: Erdős–Rényi \(S(c)\).
The same \(P_\infty\) against the bare bond probability \(p\), with \(p_c=1/(z-1)\) marked.

A sampled Bethe lattice

A finite Cayley tree with the coordination number \(z\) chosen above, grown out to generation \(D\) (as deep as keeps the drawing readable). Each bond is occupied with probability \(p=c/(z-1)\), and each bond keeps its random draw as you move the sliders. The cluster containing the root is purple.

On a tree, \(P_\infty\) is the probability that the root’s cluster reaches the boundary as \(D\to\infty\). “Estimate \(P_\infty\)” runs that experiment on \(10^4\) trees of depth 50, grown as a branching process, and compares with the depth-50 recursion and the \(D\to\infty\) result.

The boundary of a finite tree holds a large share of its nodes, so a single sample is only suggestive.

4The configuration model: a recipe for \(S\)

From the lecture notes: CM_percolation.pdf (8 pages, 12.6 MB)

Take a locally tree-like configuration model with degree distribution \(p_k\). For node \(i\) of degree \(k\) to be outside the giant component, none of its \(k\) branches may lead to it. Let \(u\) be the probability that the node reached by following an edge is not connected to the giant component through its remaining edges, excluding the one we arrived along. In the limit \(n\to\infty\) the network is locally tree-like, so the \(k\) branches are independent and nothing distinguishes one from another. So node \(i\) is outside with probability \(u^k\).

the giant component may be out there, just not connected to node i

Averaging over \(p_k\) gives \(1-S=g_0(u)\). The node reached along an edge has \(k\) further edges with the excess degree distribution \(q_k=(k+1)p_{k+1}/\langle k\rangle\), whose generating function is \(g_1\); each of those branches fails with the same edge-following probability \(u\), so \(u=g_1(u)\). This gives the recipe:

  1. from \(p_k\), calculate \(g_0(u)=\sum_k p_k u^k\);
  2. from \(g_0\), calculate \(g_1(u)=g_0'(u)/g_0'(1)\);
  3. solve the self-consistency equation \(u=g_1(u)\);
  4. obtain \(S=1-g_0(u)\).

A nontrivial root \(u<1\) exists when \(g_1\) crosses the diagonal, i.e. when the slope at \(u=1\) (the average branching) exceeds 1:

\[g_1'(1)=\sum_{k}k\,q_k=\frac{\langle k^2\rangle-\langle k\rangle}{\langle k\rangle}>1\iff\langle k^2\rangle-2\langle k\rangle>0.\]

for a “walk” to continue, each node needs at least one more edge, on average

Erdős–Rényi revisited. With \(p_k=e^{-c}c^k/k!\), \(g_0(u)=e^{c(u-1)}\), \(g_0'(1)=c\), so \(g_1(u)=g_0(u)\): the excess degree distribution equals the degree distribution, \(q_k=\frac1c(k+1)e^{-c}\frac{c^{k+1}}{(k+1)!}=p_k\). So the edge-following \(u\) coincides with the probability for a random node, which is why section 1 could use a single \(u\). Then \(u=e^{c(u-1)}\) and \(S=1-e^{-cS}\), as in section 1 (see also S.-W. Son et al., EPL 97, 16006).

Degree distribution
Green: \(y=g_1(u)\). Dashed: \(y=u\). Orange staircase: iterating \(u\leftarrow g_1(u)\) from \(u=0\), which climbs to the smallest fixed point, the physical one.
Degree distribution \(p_k\) (bars) and excess degree distribution \(q_k\) (dots), log scale. For Poisson they coincide.

A sampled configuration-model network

The theory above assumes \(n\to\infty\). Here is an actual realization for the distribution and parameter you chose: each node draws its degree from \(p_k\) (truncated at \(k=n-1\)), the stubs are paired uniformly at random, and self-loops are discarded (as is the one leftover stub when the total is odd; multi-edges are kept). The mean and maximum degree shown are those of the drawn network, after these removals, with the values drawn from \(p_k\) alongside. Moving the slider keeps each node’s random draw, so the network changes smoothly. Compare the largest component with \(S\).

Small networks fluctuate; check a larger one for a fair comparison with \(S\).

5Power-law degrees

From the lecture notes: CM_percolation.pdf (8 pages, 12.6 MB)

Take the “pure” power law \(p_k=k^{-\gamma}/\zeta(\gamma)\) for \(k\ge1\) and \(p_0=0\), with the Riemann zeta function for normalization. Then

\[g_0(u)=\frac{\mathrm{Li}_\gamma(u)}{\zeta(\gamma)},\qquad g_1(u)=\frac{\mathrm{Li}_{\gamma-1}(u)}{u\,\zeta(\gamma-1)},\qquad u=\frac{1}{\zeta(\gamma-1)}\sum_{k=1}^\infty k^{-(\gamma-1)}u^{k-1}.\]

For \(\gamma\le2\), \(\zeta(\gamma-1)\to\infty\), so \(g_1(u)=0\) for every \(u<1\): \(u=0\) is the only solution and \(S=1-g_0(0)=1\). The giant component fills the entire network.

For \(2<\gamma\le3\), \(\langle k\rangle\) is finite while \(\langle k^2\rangle\to\infty\), so \(\langle k^2\rangle-2\langle k\rangle>0\) is always satisfied. Above 3 the giant component survives until \(\zeta(\gamma-2)=2\zeta(\gamma-1)\), at \(\gamma_c\approx\) … (solved in your browser).

careful: with kmin = 1, ⟨k⟩ changes with γ, so it’s not quite a “fair” comparison

Giant component size against \(\gamma\), as in Newman’s Fig. 12.6. Dotted lines: \(\gamma=2\) and \(\gamma_c\). Pink dots: largest-component fraction in sampled configuration models with \(n=10^4\); the slow decay of finite-size effects near \(\gamma_c\) is visible.
\(\langle k\rangle=\zeta(\gamma-1)/\zeta(\gamma)\): the mean degree itself drops as \(\gamma\) grows.