Percolation Threshold
Percolation theory studies connectivity in random networks. Applied to urban infrastructure, it answers a critical question: how many roads (or links) can fail before the city becomes disconnected? The percolation threshold marks the sharp transition between a connected and fragmented network.
1. Bond and Site Percolation
In bond percolation, each edge of a graph is independently open (functional) with probability \(p\) or closed (failed) with probability \(1 - p\). In site percolation, it is the nodes that are independently occupied with probability \(p\).
The central quantity is the giant component -- the largest connected cluster of open edges/sites. Define \(P_\infty(p)\) as the fraction of nodes in the giant component:
$$P_\infty(p) = \lim_{N \to \infty} \frac{|C_{\max}|}{N}$$
There exists a critical occupation probability \(p_c\):
$$P_\infty(p) = \begin{cases} 0 & p < p_c \\ > 0 & p > p_c \end{cases}$$
For regular lattices, the critical thresholds are known exactly in some cases:\(p_c^{\text{bond}} = 1/2\) for the square lattice (bond percolation),\(p_c^{\text{site}} \approx 0.5927\) for the square lattice (site percolation), and \(p_c^{\text{bond}} = 2\sin(\pi/18) \approx 0.3473\) for the triangular lattice.
2. Molloy-Reed Criterion
For random graphs with arbitrary degree distribution \(P(k)\), the Molloy-Reed criterion determines when a giant component exists:
$$\frac{\langle k^2 \rangle}{\langle k \rangle} > 2 \qquad \Longleftrightarrow \qquad \text{giant component exists}$$
Derivation
Consider following a random edge to a node with degree \(k\). The probability of reaching a degree-\(k\) node is proportional to \(k P(k)\) (biased sampling). The excess degree (number ofother edges) of this node is \(k - 1\). The expected number of new nodes reachable from a randomly followed edge is:
$$\kappa = \frac{\sum_k k(k-1)P(k)}{\sum_k k P(k)} = \frac{\langle k^2 \rangle - \langle k \rangle}{\langle k \rangle}$$
For the giant component to grow, each step must reach at least one new node: \(\kappa > 1\):
$$\frac{\langle k^2 \rangle - \langle k \rangle}{\langle k \rangle} > 1 \quad \Rightarrow \quad \frac{\langle k^2 \rangle}{\langle k \rangle} > 2$$
For Erdős-Rényi random graphs where each pair connects with probability \(p\), we have \(\langle k \rangle = (n-1)p\) and \(\langle k^2 \rangle = \langle k \rangle + \langle k \rangle^2\). The criterion gives:
$$p_c = \frac{1}{\langle k \rangle} = \frac{1}{n - 1} \approx \frac{1}{n}$$
This is the classic result: in a random graph on \(n\) nodes, the giant component appears when the average degree exceeds 1.
3. Critical Exponents and Scaling
Near the critical point, the percolation transition is characterised by power laws with universal critical exponents:
$$P_\infty(p) \sim (p - p_c)^{\beta} \qquad \text{for } p > p_c$$
$$\langle s \rangle \sim |p - p_c|^{-\gamma} \qquad \text{(mean cluster size)}$$
$$\xi \sim |p - p_c|^{-\nu} \qquad \text{(correlation length)}$$
In 2D (square lattice), the exponents are exactly known:
- \(\beta = 5/36\) (order parameter)
- \(\gamma = 43/18\) (susceptibility)
- \(\nu = 4/3\) (correlation length)
At the critical point itself, the cluster size distribution follows a power law:\(\;n_s \sim s^{-\tau}\) with \(\tau = 187/91 \approx 2.055\) in 2D. The fractal dimension of the percolating cluster at criticality is\(d_f = 91/48 \approx 1.896\).
4. Urban Infrastructure Resilience
Percolation theory provides the framework for understanding urban infrastructure resilience. Key applications:
- Road network failure: Bond percolation models random road closures (accidents, floods). The percolation threshold \(p_c\) gives the fraction of roads that must remain open for the city to stay connected.
- Targeted attacks: Removing high-betweenness nodes first is far more damaging than random failure. Scale-free networks are robust to random failure but vulnerable to targeted attack.
- Cascading failures: When a road closes, traffic reroutes, potentially overloading adjacent roads -- triggering further failures. This cascade can push the system past \(p_c\) even from a small initial perturbation.
For a street network with average degree \(\bar{k} \approx 4\) (grid city), the random failure threshold is approximately \(1 - p_c \approx 1 - 1/(\bar{k}-1) = 2/3\), meaning roughly two-thirds of roads can fail randomly before the network fragments. Suburban networks with \(\bar{k} \approx 2.5\) are much more vulnerable: \(1 - p_c \approx 1/3\).
5. Python: Bond Percolation Simulation
We simulate bond percolation on a square lattice, find the critical threshold, and plot the giant component fraction as a function of occupation probability.
Bond Percolation on Square Lattice
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
6. Large-Scale Percolation: Union-Find Algorithm
For large lattices, we need an efficient algorithm. The Union-Find (disjoint set) data structure processes percolation in near-linear time \(O(N \alpha(N))\) where \(\alpha\) is the inverse Ackermann function (effectively constant).
Large-Scale Percolation with Union-Find
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
7. Percolation on General Networks
For networks with degree distribution \(P(k)\), bond percolation with probability \(p\) effectively replaces \(P(k)\) with a thinned distribution. The generating function approach gives the critical threshold:
$$p_c = \frac{\langle k \rangle}{\langle k^2 \rangle - \langle k \rangle} = \frac{1}{\kappa}$$
where \(\kappa\) is the branching ratio from Section 2. For scale-free networks with \(P(k) \sim k^{-\gamma}\) and \(\gamma < 3\), the second moment diverges (\(\langle k^2 \rangle \to \infty\)), so:
$$p_c \to 0 \qquad \text{for scale-free networks with } \gamma < 3$$
This means scale-free networks are infinitely robust to random failure -- you can remove almost all edges and the giant component persists. However, targeted removal of the highest-degree nodes (hubs) quickly fragments the network. This has profound implications for urban infrastructure: transportation networks dominated by a few major highways are resilient to random disruptions but catastrophically vulnerable to targeted attacks on key junctions.