Foundations to Frontier
Tests
A. Mathematical Foundations › A11 Graph Theory and Discrete Math

Random Graphs

What does a 'typical' large network look like? Random graph models answer this and reveal sharp phase transitions. This topic covers the Erdős–Rényi model G(n, p) with its Poisson degree distribution, the emergence of a giant component at mean degree 1 and full connectivity at p = ln n / n, expected subgraph counts, random geometric graphs for ad-hoc wireless networks, and real-world models (small-world and preferential attachment) with their heavy-tailed degrees. In the research exercise you test how scale-free and homogeneous networks survive random failures versus targeted attacks, and find the radio range at which a drone swarm's network percolates.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Connections by coin flip

Take 100 people and, for every pair, flip a (biased) coin to decide whether they become friends. With very few friendships, everyone sits in tiny groups. Add friendships slowly, and at one moment a huge connected group suddenly forms that links most people. That sudden change, like water freezing, is a phase transition, and random graphs let us predict exactly when it happens.

Random graphs: the sudden birth of a giant component
c = 1mean degree c →giant fraction (theory line, this sample dot)
mean degree 1.50 · components 33 · largest component 67% of nodes (theory for n → ∞: 58%)
In G(n, p), each possible edge appears independently. Below a mean degree of 1, all components are small (logarithmic size); just above it, a single giant component suddenly contains a finite fraction of all nodes: a phase transition. Full connectivity needs a larger mean degree, about ln n. Random geometric graphs, like a swarm whose radios reach distance r, show the same sudden percolation as the range grows.
Why engineers care

Drone swarms, satellite constellations and sensor networks form ad-hoc links that behave like random graphs: designers need to know the radio range or node density at which the network becomes connected. Random-graph models also explain why the internet survives random failures but is vulnerable to attacks on hubs, and they’re standard null models for testing network algorithms.

📝 Quick check (Level 0)
0/3 answered
  1. 1. In an Erdős–Rényi random graph, each possible edge…
  2. 2. A giant component appears when the mean degree passes about…
  3. 3. Increasing a swarm's radio range makes the network…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

The G(n, p) model

There are n vertices, and each of the (n2)\binom n2 pairs is joined independently with probability p.

  • Expected edges: (n2)p\binom n2p.
  • Degree: Bin⁡(n−1,p)≈Poisson⁡(c)\operatorname{Bin}(n - 1, p)\approx\operatorname{Poisson}(c) with mean c=(n−1)pc = (n - 1)p.
  • Expected copies of a small subgraph: for example, triangles (n3)p3\binom n3p^3.

Thresholds (Erdős and Rényi, 1960)

  • c<1c < 1: all components have size O(log⁡n)O(\log n).
  • c>1c > 1: a unique giant component containing a fraction SS of the nodes, where S=1−e−cSS = 1 - e^{-cS}.
  • p=(ln⁡n+x)/np = (\ln n + x)/n: P(connected)→e−e−xP(\text{connected})\to e^{-e^{-x}}. Connectivity switches on sharply at p≈ln⁡n/np\approx\ln n/n.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Expected edges in G(100, 0.1):
  2. 2. Degree distribution of sparse G(n, c/n):
  3. 3. Connectivity threshold for n = 1000:

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Random geometric graphs

Place n points uniformly in the unit square and connect pairs closer than r. This models wireless ad-hoc networks: robot swarms, sensor fields, satellite cross-links. Connectivity has a sharp threshold near πr2n≈ln⁡n\pi r^2n\approx\ln n (Penrose, 2003). Unlike ER graphs, these graphs are highly clustered.

Real-world network models

  • Small world (Watts and Strogatz, 1998): rewire a few edges of a lattice. High clustering plus short paths (≈ log n).
  • Preferential attachment (Barabási and Albert, 1999): new nodes link to existing nodes with probability proportional to degree. This gives power-law degrees P(k)∝k−3P(k)\propto k^{-3}, and hubs.

Robustness (Albert, Jeong and Barabási, 2000)

Heavy-tailed networks keep a giant component under random node failure, since most nodes are small. But removing a few hubs shatters them. Homogeneous (ER) networks degrade similarly under both.

🐍 Exercise 1: Erdős–Rényi thresholds
Simulate G(n, p). Check the Poisson degree statistics, the giant-component fraction against S = 1 − e^(−cS) on both sides of c = 1, the sharp connectivity threshold at ln n/n, and the expected triangle count.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Preferential attachment produces degree distributions that are…
  2. 2. Scale-free networks are fragile against…
  3. 3. Small-world networks combine…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Poisson degrees

P(di=k)=(n−1k)pk(1−p)n−1−kP(d_i = k) = \binom{n-1}kp^k(1 - p)^{n-1-k}. With p=c/np = c/n and n → ∞, this tends to e−cck/k!e^{-c}c^k/k!. ∎

The giant-component equation

Let u be the probability that a vertex is not in the giant component. That happens iff each neighbour also leads nowhere. With Poisson(c) neighbours, u=∑ke−cckk!uk=ec(u−1)u = \sum_k\frac{e^{-c}c^k}{k!}u^k = e^{c(u-1)}. Writing S=1−uS = 1 - u gives S=1−e−cSS = 1 - e^{-cS}. A nonzero root exists iff the slope of the right-hand side at 0 exceeds 1, i.e. c>1c > 1. ∎ This is a branching-process argument.

Connectivity threshold (first-moment sketch)

The expected number of isolated vertices is n(1−p)n−1≈ne−pnn(1 - p)^{n-1}\approx ne^{-pn}. It goes to 0 iff pn−ln⁡n→∞pn - \ln n\to\infty. Near the threshold, isolated vertices are the last obstruction to connectivity, so they control P(connected)P(\text{connected}).

Exercise 3.1: giant fraction at c = 2

Iterate S←1−e−2SS\leftarrow1 - e^{-2S}: S ≈ 0.797. About 80% of nodes are in the giant component.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The giant-component equation comes from…
  2. 2. Expected isolated vertices in G(n, p) ≈
  3. 3. Giant fraction at c = 2:

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Network resilience and swarm connectivity

Two 800-node networks have the same mean degree (≈ 4): a Barabási–Albert (scale-free, max degree 62) and an Erdős–Rényi (max degree 10). Removing 10% of nodes:

Network Random failure Targeted attack on hubs
BA (scale-free) giant 0.90 giant 0.58
ER giant 0.87 giant 0.85

For a swarm of 300 drones in a unit area, the network jumps from fragmented (8% giant component at radio range 0.05) to almost fully linked (96% at 0.08). Mission designers size radio range, density and relay placement against such thresholds, and avoid single hub relays.

🐍 Exercise 2 (research): robustness and swarm percolation
Generate Barabási–Albert and Erdős–Rényi graphs with equal mean degree. Compare their giant component after random failure and after targeted hub removal, then find the radio range at which a 300-drone random geometric network percolates.

Random graphs in AI, robotics and aerospace

  • Swarms and constellations: connectivity and percolation analysis of ad-hoc networks; relay placement; delay-tolerant networking.
  • Infrastructure resilience: power grids, communication networks and supply chains under random vs targeted disruption.
  • Algorithms: random graphs as test beds and null models; random sparse matrices in compressed sensing and LDPC codes (a7).
  • Machine learning: graph generative models; random features and the expander graphs behind graph transformers.

References

  1. P. Erdős, A. Rényi (1960). “On the evolution of random graphs.” Publ. Math. Inst. Hungarian Acad. Sci., 5.
  2. B. Bollobás (2001). Random Graphs, 2nd ed. Cambridge.
  3. R. van der Hofstad (2017). Random Graphs and Complex Networks, Vol. 1. Cambridge.
  4. M. Penrose (2003). Random Geometric Graphs. Oxford.
  5. D. Watts, S. Strogatz (1998). “Collective dynamics of ‘small-world’ networks.” Nature, 393.
  6. A.-L. Barabási, R. Albert (1999). “Emergence of scaling in random networks.” Science, 286.
  7. R. Albert, H. Jeong, A.-L. Barabási (2000). “Error and attack tolerance of complex networks.” Nature, 406.
  8. M. Newman (2018). Networks, 2nd ed. Oxford.