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

Spectral Graph Theory

The eigenvalues and eigenvectors of a graph's Laplacian reveal its structure: how well connected it is, where it naturally splits, how fast random walks mix, and which signals are smooth on it. This topic covers the Courant–Fischer view of Laplacian eigenvalues, the Fiedler vector and spectral partitioning, conductance and the Cheeger inequality, the normalized Laplacian and random walks, and the graph Fourier transform. You will recover planted communities with a single eigenvector, verify the Cheeger bounds, and use spectral clustering to separate interleaved shapes that k-means cannot.

Level 0: Foundation

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

Listening to a graph

Strike a drum and it rings with notes set by its shape. Graphs “ring” too. The eigenvectors of the Laplacian are a graph’s vibration patterns. The slowest pattern gently pushes one side of the graph up and the other side down, splitting it exactly where it’s weakly connected. Spectral graph theory reads a graph’s structure from these notes.

Spectral clustering: let the graph decide what belongs together
spectral: 100%k-means: 74%spectral embedding
Connect each point to its k nearest neighbours, then embed the points using the smallest eigenvectors of the normalized Laplacian. Points that are well connected in the graph land close together even if they are far apart in a straight line, so simple k-means in the embedding separates moons and rings. Plain k-means on raw coordinates can only draw straight boundaries. Too few neighbours can split a cluster; too many add bridges between clusters.
Why engineers care

Spectral methods partition communication networks and meshes for parallel computing, cluster sensor data and point clouds, segment images, detect weak links in multi-robot networks, and form the theoretical basis of graph neural networks and graph signal processing.

📝 Quick check (Level 0)
0/3 answered
  1. 1. The Laplacian's eigenvectors are like a graph's…
  2. 2. The slowest nontrivial pattern tends to split the graph…
  3. 3. Spectral clustering can separate shapes that are…

Level 1: Beginner

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

Eigenvalues as optimization

For the Laplacian, with 0=λ1≤λ2≤⋯≤λn0 = \lambda_1\le\lambda_2\le\dots\le\lambda_n (Courant–Fischer):

λ2=min⁡x⊥1, x≠0x⊤Lxx⊤x=min⁡∑(i,j)∈E(xi−xj)2∑xi2\lambda_2 = \min_{x\perp\mathbf 1,\ x\ne0}\frac{x^\top Lx}{x^\top x} = \min\frac{\sum_{(i,j)\in E}(x_i - x_j)^2}{\sum x_i^2}

The minimizer, the Fiedler vector, assigns values that vary as little as possible across edges while not being constant. Splitting vertices by its sign (or a threshold sweep) gives a good cut.

Normalized Laplacian and random walks

L=I−D−1/2AD−1/2\mathcal L = I - D^{-1/2}AD^{-1/2} has eigenvalues in [0,2][0, 2]. A random walk P=D−1AP = D^{-1}A converges to the stationary distribution π∝d\pi\propto d, at a rate set by L\mathcal L’s spectral gap.

📝 Quick check (Level 1)
0/3 answered
  1. 1. λ₂ is the minimum of the Rayleigh quotient over vectors…
  2. 2. Eigenvalues of the normalized Laplacian lie in…
  3. 3. A random walk on a connected, non-bipartite graph converges to π ∝…

Level 2: Intermediate

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

Cuts, conductance and Cheeger

The conductance of a vertex set S is ϕ(S)=cut⁡(S,Sˉ)min⁡(vol⁡S,vol⁡Sˉ)\phi(S) = \frac{\operatorname{cut}(S, \bar S)}{\min(\operatorname{vol}S, \operatorname{vol}\bar S)}, where vol is the sum of degrees. The graph’s conductance ϕ(G)\phi(G) is the minimum over S. The Cheeger inequality (for L\mathcal L) is

λ22≤ϕ(G)≤2λ2\frac{\lambda_2}2\le\phi(G)\le\sqrt{2\lambda_2}

A small λ2\lambda_2 means a bottleneck exists, and the Fiedler sweep cut finds one within the upper bound.

Spectral clustering (Ng, Jordan and Weiss; Shi and Malik)

  1. Build a similarity graph (k-NN or Gaussian kernel).
  2. Take the k smallest eigenvectors of L\mathcal L.
  3. Normalize the rows.
  4. Run k-means in that embedding.

It relaxes the NP-hard normalized-cut problem to an eigenvalue problem.

Graph Fourier transform

The Laplacian eigenvectors are a “frequency” basis on the graph. x^=V⊤x\hat x = V^\top x, and x⊤Lx=∑λkx^k2x^\top Lx = \sum\lambda_k\hat x_k^2. Smooth signals live in low frequencies. Graph filters h(L)h(L) generalize convolution, which is the foundation of spectral GNNs.

🐍 Exercise 1: Fiedler partitioning, Cheeger and the graph Fourier transform
Generate a two-community stochastic block model and recover the communities from a sweep over the normalized Fiedler vector. Check the Cheeger inequality, show that a community-aligned signal is low-frequency, and check that a random walk converges to π ∝ degree.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Cheeger's inequality relates λ₂ to…
  2. 2. Spectral clustering relaxes…
  3. 3. xᵀLx in the graph Fourier basis equals…

Level 3: Advanced

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

Courant–Fischer for λ₂

L is symmetric with eigenvector 1\mathbf 1 for λ1=0\lambda_1 = 0. Write x⊥1x\perp\mathbf 1 as ∑k≥2ckvk\sum_{k\ge2}c_kv_k. Then x⊤Lxx⊤x=∑λkck2∑ck2≥λ2\frac{x^\top Lx}{x^\top x} = \frac{\sum\lambda_kc_k^2}{\sum c_k^2}\ge\lambda_2, with equality at v2v_2. ∎

Easy side of Cheeger

For a set S, use the test vector x=1S/vol⁡S−1Sˉ/vol⁡Sˉx = \mathbb 1_S/\operatorname{vol}S - \mathbb 1_{\bar S}/\operatorname{vol}\bar S (D-orthogonal to 1\mathbf 1). Its Rayleigh quotient is at most 2ϕ(S)2\phi(S). So λ2≤2ϕ(G)\lambda_2\le2\phi(G). ∎ The hard side, ϕ≤2λ2\phi\le\sqrt{2\lambda_2}, comes from analysing the sweep cut of the Fiedler vector (Chung, 1997).

Relaxation view of spectral partitioning

Minimizing the ratio cut over indicator vectors is NP-hard. Allowing real-valued x with x⊥1x\perp\mathbf 1 and ∥x∥=1\lVert x\rVert = 1 gives exactly the λ₂ problem. Rounding by sign or sweep recovers a discrete cut.

Exercise 3.1: λ₂ of the normalized Laplacian of K₄

D−1/2AD−1/2=A/3D^{-1/2}AD^{-1/2} = A/3 has eigenvalues 1 and −1/3 (three times). So L\mathcal L has 0 and 4/3 (three times), and λ2=4/3\lambda_2 = 4/3: very well connected.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The easy Cheeger bound is λ₂ ≤
  2. 2. λ₂ of the normalized Laplacian of K₄:
  3. 3. Spectral partitioning rounds which relaxed problem?

Level 4: Expert

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

Clustering interleaved shapes

Two interleaved half-moons (300 points) are a classic failure case for k-means: it can only draw a straight boundary and scores about 77% accuracy. Build a 15-nearest-neighbour graph, embed with the two smallest normalized-Laplacian eigenvectors, and cluster there. Accuracy rises to 99% on average over 5 datasets (one run 96%). Neighbourhood size matters. Too small and the graph splits each moon; too large and bridges form between them. This is the same pipeline used to segment lidar scans into objects, group sensor anomalies, and find communities in robot communication networks.

🐍 Exercise 2 (research): spectral clustering vs k-means
Generate two-moons data, build a symmetric k-NN graph, and implement normalized spectral clustering (eigenvectors, row normalization, k-means). Compare its accuracy with k-means on raw coordinates over 5 datasets.

Spectral methods in AI, robotics and aerospace

  • Segmentation: normalized cuts for images (Shi and Malik, 2000) and point-cloud segmentation for perception.
  • Parallel computing: spectral partitioning of CFD and FEM meshes across processors.
  • Graph neural networks: spectral GNNs (Bruna et al., 2014), ChebNet and GCN as low-order polynomial graph filters.
  • Network resilience: algebraic connectivity monitoring and topology control for swarms; identifying critical links.

References

  1. F. Chung (1997). Spectral Graph Theory. AMS CBMS 92.
  2. J. Shi, J. Malik (2000). “Normalized cuts and image segmentation.” IEEE TPAMI, 22(8).
  3. A. Ng, M. Jordan, Y. Weiss (2001). “On spectral clustering: analysis and an algorithm.” NeurIPS.
  4. U. von Luxburg (2007). “A tutorial on spectral clustering.” Statistics and Computing, 17(4).
  5. J. Cheeger (1970). “A lower bound for the smallest eigenvalue of the Laplacian.” In Problems in Analysis, Princeton.
  6. D. Shuman, S. Narang, P. Frossard, A. Ortega, P. Vandergheynst (2013). “The emerging field of signal processing on graphs.” IEEE Signal Processing Magazine, 30(3).
  7. J. Bruna, W. Zaremba, A. Szlam, Y. LeCun (2014). “Spectral networks and locally connected networks on graphs.” ICLR.
  8. D. Spielman (2019). Spectral and Algebraic Graph Theory. Yale lecture notes.