Introduction to Spectral Graph Theory

How much can you learn about a graph just from a list of numbers? This is the central question of spectral graph theory. Given a finite graph, we build a matrix that records its structure. We then ask what the eigenvalues of that matrix reveal about the combinatorics of the graph. This includes connectivity, bipartiteness, expansion, the number of spanning trees, and more. The surprising answer is: a great deal. A single real number, the second-smallest Laplacian eigenvalue, already controls how well-connected a graph is. The full multiset of eigenvalues determines the number of closed walks of every length. It also determines the number of spanning trees. This matters because graphs are discrete, combinatorial objects. Eigenvalues, by contrast, come from linear algebra. Linear algebra is a continuous and highly developed theory with powerful tools. These tools include orthogonal diagonalization, variational characterizations, interlacing, and trace identities. Spectral graph theory is the bridge that lets us import these tools into combinatorics. It converts hard-to-see global structure into statements about eigenvalues. Such structure includes whether a graph is well connected. It also includes whether it has a large bipartite subgraph. It includes how fast a random walk on it mixes. Eigenvalues are often computable and amenable to estimation. The big picture is this: a graph has (at least) two natural matrices attached to it. These are the adjacency matrix AA and the Laplacian matrix L=D−AL = D - A. Both are real symmetric. Hence both are orthogonally diagonalizable with real eigenvalues, by the Spectral Theorem for symmetric matrices. The eigenvalues of AA encode walk-counting information. The eigenvalues of LL encode connectivity information. Via the Matrix-Tree Theorem, they also encode the number of spanning trees. This article builds both matrices from scratch. It proves the core structural facts: nonnegativity of Laplacian eigenvalues, the multiplicity of the eigenvalue 00 as the number of connected components, and the bipartiteness criterion via symmetry of the adjacency spectrum. It also proves the algebraic connectivity theorem. This theorem relates the second-smallest Laplacian eigenvalue to connectivity. The article delivers precise definitions of both matrices. It gives a full proof of the Laplacian's basic spectral theorem, including the component-counting result. It proves that a connected graph is bipartite if and only if its adjacency spectrum is symmetric about 00. It includes two fully worked numerical examples on asymmetric graphs. Finally, it discusses where these ideas are used across mathematics, physics, computer science, and statistics.

Key takeaways
  • A graph GG gives rise to two canonical symmetric matrices: the adjacency matrix AA and the Laplacian L=D−AL = D - A.
  • Both are real symmetric, so by the spectral theorem they have real eigenvalues and orthonormal eigenvector bases.
  • LL is positive semidefinite; its smallest eigenvalue is always 00, and the multiplicity of 00 equals the number of connected components of GG.
  • The second-smallest Laplacian eigenvalue λ2\lambda_2 (the algebraic connectivity) is positive iff GG is connected, and it quantifies how "well-glued-together" GG is.
  • A connected graph is bipartite iff its adjacency spectrum is symmetric under λ↦−λ\lambda \mapsto -\lambda.
  • The number of spanning trees of GG is a product of nonzero Laplacian eigenvalues divided by the number of vertices — this is the algebraic form of the Matrix-Tree Theorem.
  • Key idea: turning a combinatorial graph into a linear algebra object lets eigenvalues certify and quantify structural properties like connectivity and bipartiteness.

Where this lives today

Spectral graph theory is not a museum piece; it is load-bearing infrastructure across several fields.

Spectral clustering and partitioning. The eigenvector associated with λ2\lambda_2 (the Fiedler vector) is used to split a graph into two well-connected pieces with a small cut — the basis of spectral clustering algorithms in machine learning and image segmentation, where a similarity graph is built on data points and its Laplacian's low eigenvectors reveal cluster structure.

Expander graphs and pseudorandomness. A family of graphs is a good expander precisely when the gap between the top two adjacency eigenvalues (or, equivalently, λ2\lambda_2 of the Laplacian relative to the maximum degree) stays bounded away from zero; expanders underlie error-correcting codes, derandomization, and network design in theoretical computer science.

Random walks and Markov chains. The normalized Laplacian's eigenvalues govern the mixing time of a random walk on a graph — how quickly the walk's distribution converges to uniform — which matters for Monte Carlo sampling algorithms and for analyzing web-scale random surfer models such as PageRank.

Chemistry and physics. Hückel molecular orbital theory computes bonding/antibonding energy levels of conjugated hydrocarbons as eigenvalues of the molecule's adjacency matrix, an early and direct physical application predating much of the graph-theoretic formalization.

Cryptography and coding theory. Strongly regular graphs and their prescribed eigenvalue structure underlie constructions of optimal error-correcting codes and combinatorial designs, connecting spectral graph theory to algebraic coding theory.

Network science and robustness. Algebraic connectivity is used as a quantitative robustness measure for communication and power networks: a larger λ2\lambda_2 signals that more edges must be removed to disconnect the network, informing infrastructure design against targeted or random failures.

Ask the tutor: How does the algebraic connectivity λ2\lambda_2 relate quantitatively to the edge-connectivity and vertex-connectivity of a graph?

DefinitionAdjacency and Laplacian matrices

Let G=(V,E)G = (V, E) be a finite, simple, undirected graph with V={v1,…,vn}V = \{v_1, \dots, v_n\} and ∣E∣=m|E| = m. (Simple means no loops and no multiple edges; the theory extends to multigraphs, but we fix this setting throughout.)

Adjacency matrix. The adjacency matrix A=A(G)∈Rn×nA = A(G) \in \mathbb{R}^{n \times n} is defined entrywise by

Aij={1if vivj∈E,0otherwise.A_{ij} = \begin{cases} 1 & \text{if } v_iv_j \in E, \\ 0 & \text{otherwise.} \end{cases}

Since GG is simple and undirected, Aii=0A_{ii} = 0 for all ii and Aij=AjiA_{ij} = A_{ji}, so AA is a real symmetric matrix with zero diagonal.

Degree matrix. D=D(G)∈Rn×nD = D(G) \in \mathbb{R}^{n\times n} is the diagonal matrix with Dii=deg⁡(vi)=∑jAijD_{ii} = \deg(v_i) = \sum_{j} A_{ij}.

Laplacian matrix. The (combinatorial) Laplacian is

L=L(G):=D−A.L = L(G) := D - A.

Equivalently, fixing an arbitrary orientation of each edge e=(vi,vj)∈Ee = (v_i, v_j) \in E, let be∈Rnb_e \in \mathbb{R}^n have +1+1 in coordinate ii, −1-1 in coordinate jj, and 00 elsewhere, and let B∈Rn×mB \in \mathbb{R}^{n\times m} be the matrix with columns beb_e (the incidence matrix). Then

L=BB⊤.L = BB^\top.

This second formula is independent of the chosen orientation, since flipping an orientation negates a column of BB, leaving BB⊤BB^\top unchanged. The spectrum of AA (respectively LL) is its multiset of eigenvalues, always listed with algebraic multiplicity. Because AA and LL are real symmetric matrices, all their eigenvalues are real (this follows from the Spectral Theorem), and we adopt the convention of ordering the Laplacian spectrum as

0=λ1≤λ2≤⋯≤λn.0 = \lambda_1 \le \lambda_2 \le \cdots \le \lambda_n.

Intuition

Think of the adjacency matrix AA as an operator that moves mass along edges: if x∈Rnx \in \mathbb{R}^n assigns a value xix_i to vertex viv_i, then (Ax)i=∑j∼ixj(Ax)_i = \sum_{j \sim i} x_j is the sum of xx over the neighbors of viv_i. Iterating AA counts walks: the entry (Ak)ij(A^k)_{ij} equals the number of walks of length kk from viv_i to vjv_j. This is why the adjacency spectrum controls global counting statistics such as the number of closed walks (the trace of AkA^k) and, via the Matrix-Tree Theorem and companion identities, other enumerative invariants. The Laplacian has a complementary, more geometric role: it measures disagreement across edges. For x∈Rnx \in \mathbb{R}^n,

x⊤Lx=∑vivj∈E(xi−xj)2,x^\top L x = \sum_{v_iv_j \in E} (x_i - x_j)^2,

a sum of squared differences across every edge (we prove this identity below). This quadratic form is visibly ≥0\ge 0, and it is 00 exactly when xx is constant on each connected component — capturing connectivity as an algebraic condition. This is the reason λ2\lambda_2, the smallest nonzero possible Laplacian eigenvalue, serves as a connectivity gauge: making λ2\lambda_2 small means you can find a nonconstant xx that changes very little across most edges, i.e., the graph can be almost split into two loosely connected pieces (a small "cut").

Figure
A path graph P4P_4: vertices, degrees, and the Laplacian's quadratic form
v₁ v₂ v₃ v₄ deg=1 deg=2 deg=2 deg=1 xᵀLx = (x₁−x₂)² + (x₂−x₃)² + (x₃−x₄)² L eigenvalues (P₄): 0, 2−√2, 2, 2+√2 ≈ 0, 0.586, 2, 3.414

Central theorems

TheoremBasic spectral facts about the Laplacian

Let GG be a finite simple graph on nn vertices with Laplacian L=D−A=BB⊤L = D - A = BB^\top, and let 0=λ1≤λ2≤⋯≤λn0 = \lambda_1 \le \lambda_2 \le \cdots \le \lambda_n be its eigenvalues. Then: 1. (Quadratic form identity.) For every x∈Rnx \in \mathbb{R}^n,

x⊤Lx=∑vivj∈E(xi−xj)2.x^\top L x = \sum_{v_iv_j \in E} (x_i - x_j)^2.

2. (Positive semidefiniteness.) LL is symmetric positive semidefinite; hence all its eigenvalues are real and nonnegative, i.e. λ1=0≤λ2≤⋯≤λn\lambda_1 = 0 \le \lambda_2 \le \cdots \le \lambda_n. 3. (Kernel = constants on components.) The all-ones vector 1\mathbf{1} satisfies L1=0L\mathbf{1} = 0. More precisely, the nullspace (kernel) of LL is exactly the space of vectors that are constant on each connected component of GG. 4. (Multiplicity of 00 counts components.) The multiplicity of the eigenvalue 00 in the spectrum of LL equals the number cc of connected components of GG. In particular, GG is connected iff λ2>0\lambda_2 > 0.

Proof

We prove each part in turn, using only the definitions above and basic linear algebra (real symmetric matrices, quadratic forms, and dimension counting for kernels).

Part 1 (quadratic form identity). Recall L=BB⊤L = BB^\top where BB is the incidence matrix with one column beb_e per edge e=vivje = v_iv_j (with an arbitrarily fixed orientation, say +1+1 at viv_i, −1-1 at vjv_j). Then for any x∈Rnx \in \mathbb{R}^n,

x⊤Lx=x⊤BB⊤x=(B⊤x)⊤(B⊤x)=∥B⊤x∥22.x^\top L x = x^\top B B^\top x = (B^\top x)^\top (B^\top x) = \|B^\top x\|_2^2.

The vector B⊤x∈RmB^\top x \in \mathbb{R}^m has, in the coordinate indexed by edge e=vivje = v_iv_j (oriented i→ji \to j), the entry

(B⊤x)e=∑k(B⊤)ekxk=∑kBkexk=xi−xj,(B^\top x)_e = \sum_k (B^\top)_{ek} x_k = \sum_k B_{ke} x_k = x_i - x_j,

since column beb_e has a +1+1 in row ii, a −1-1 in row jj, and 00 elsewhere. Squaring and summing over all edges e∈Ee \in E gives

x⊤Lx=∥B⊤x∥22=∑e=vivj∈E(xi−xj)2,x^\top L x = \|B^\top x\|_2^2 = \sum_{e = v_iv_j \in E} (x_i - x_j)^2,

which is exactly the claimed identity. (Note the right-hand side does not depend on the choice of orientation, since (xi−xj)2=(xj−xi)2(x_i-x_j)^2 = (x_j-x_i)^2; this is consistent with our earlier remark that LL itself is orientation-independent.)

Part 2 (positive semidefiniteness). LL is symmetric because L⊤=(BB⊤)⊤=BB⊤=LL^\top = (BB^\top)^\top = BB^\top = L (or directly, D−AD-A is symmetric since DD is diagonal and AA is symmetric). By Part 1, for every x∈Rnx\in\mathbb{R}^n,

x⊤Lx=∑vivj∈E(xi−xj)2≥0,x^\top L x = \sum_{v_iv_j\in E}(x_i-x_j)^2 \ge 0,

a sum of squares, so LL is positive semidefinite. By the Spectral Theorem, a real symmetric matrix LL can be written L=QΛQ⊤L = Q\Lambda Q^\top with QQ orthogonal and Λ=diag⁡(λ1,…,λn)\Lambda = \operatorname{diag}(\lambda_1,\dots,\lambda_n) real. If qq is a unit eigenvector for eigenvalue λ\lambda, then λ=λ∥q∥2=q⊤Lq≥0\lambda = \lambda \|q\|^2 = q^\top L q \ge 0 by positive semidefiniteness. Hence every eigenvalue of LL is ≥0\ge 0, justifying the ordering 0≤λ1≤⋯≤λn0 \le \lambda_1 \le \cdots \le \lambda_n (we will show λ1=0\lambda_1 = 0 is actually attained in Part 3).

Part 3 (kernel characterization). First, L1=D1−A1L\mathbf{1} = D\mathbf{1} - A\mathbf{1}. The ii-th entry of D1D\mathbf 1 is deg⁡(vi)\deg(v_i), and the ii-th entry of A1A\mathbf 1 is ∑jAij=deg⁡(vi)\sum_j A_{ij} = \deg(v_i) as well (the row sums of AA equal the vertex degrees, by definition of AA). So (L1)i=deg⁡(vi)−deg⁡(vi)=0(L\mathbf 1)_i = \deg(v_i) - \deg(v_i) = 0 for every ii, i.e. L1=0L\mathbf 1 = 0. This proves 1∈ker⁡L\mathbf 1 \in \ker L, so 00 is indeed an eigenvalue (justifying λ1=0\lambda_1 = 0). More generally, suppose x∈ker⁡Lx \in \ker L. Since LL is positive semidefinite and x⊤Lx=0x^\top L x = 0, Part 1 gives

0=x⊤Lx=∑vivj∈E(xi−xj)2.0 = x^\top L x = \sum_{v_iv_j \in E} (x_i - x_j)^2.

A sum of squares is zero iff every term is zero, so xi=xjx_i = x_j for every edge vivj∈Ev_iv_j \in E. Since two vertices in the same connected component are joined by a path, and xx is constant across each edge of that path, xx is constant on each connected component. This shows ker⁡L⊆{x:x constant on each component}\ker L \subseteq \{x : x \text{ constant on each component}\}. Conversely, if xx is constant on each component, then for every edge vivj∈Ev_iv_j \in E the endpoints lie in the same component (edges only join vertices within a component), so xi=xjx_i = x_j, hence every term of the sum in Part 1 vanishes and x⊤Lx=0x^\top L x = 0. Since LL is symmetric positive semidefinite, x⊤Lx=0x^\top L x = 0 implies Lx=0Lx = 0: writing L=QΛQ⊤L = Q\Lambda Q^\top and y=Q⊤xy = Q^\top x, we get x⊤Lx=∑kλkyk2=0x^\top Lx = \sum_k \lambda_k y_k^2 = 0 with all λk≥0\lambda_k \ge 0, forcing yk=0y_k = 0 whenever λk>0\lambda_k > 0, so Ly=ΛyLy = \Lambda y has (Λy)k=λkyk=0(\Lambda y)_k = \lambda_k y_k = 0 for all kk (either because λk=0\lambda_k=0 or because yk=0y_k=0); hence Λy=0\Lambda y = 0 and Lx=QΛQ⊤x=QΛy=0Lx = Q\Lambda Q^\top x = Q\Lambda y = 0. This shows the reverse inclusion. Combining both inclusions:

ker⁡L={x∈Rn:x is constant on each connected component of G}.\ker L = \{x \in \mathbb{R}^n : x \text{ is constant on each connected component of } G\}.

Part 4 (multiplicity of 00). Let cc be the number of connected components C1,…,CcC_1, \dots, C_c of GG. By Part 3, ker⁡L\ker L consists exactly of vectors constant on each CkC_k; such a vector is determined by the cc constants it takes on C1,…,CcC_1,\dots,C_c, so the indicator vectors 1C1,…,1Cc\mathbf 1_{C_1}, \dots, \mathbf 1_{C_c} (each 11 on CkC_k and 00 elsewhere) form a basis of ker⁡L\ker L: they are linearly independent (disjoint supports) and every constant-on-components vector is a linear combination ∑kαk1Ck\sum_k \alpha_k \mathbf 1_{C_k}. Hence

dim⁡ker⁡L=c.\dim \ker L = c.

Because LL is symmetric and thus diagonalizable (again by the Spectral Theorem), the geometric multiplicity of every eigenvalue equals its algebraic multiplicity. In particular the algebraic multiplicity of the eigenvalue 00 equals dim⁡ker⁡L=c\dim\ker L = c. Finally, since eigenvalues are listed in nondecreasing order 0=λ1≤λ2≤⋯0 = \lambda_1 \le \lambda_2 \le \cdots, the multiplicity of 00 being cc means λ1=⋯=λc=0<λc+1≤⋯\lambda_1 = \cdots = \lambda_c = 0 < \lambda_{c+1} \le \cdots (with the convention λc+1\lambda_{c+1} nonexistent if c=nc=n, i.e. no edges). In particular c=1c = 1 (connectedness) holds iff λ2>0\lambda_2 > 0, i.e. iff only λ1\lambda_1 equals 00. ■\blacksquare

∎
CorollaryAlgebraic connectivity

GG is connected if and only if λ2(L)>0\lambda_2(L) > 0. The quantity λ2(L)\lambda_2(L) is called the algebraic connectivity of GG (sometimes denoted a(G)a(G)), and it is 00 precisely when GG is disconnected.

Proof

Immediate from Part 4 above: GG connected means c=1c = 1, i.e. multiplicity of eigenvalue 00 is exactly 11, i.e. λ1=0<λ2\lambda_1 = 0 < \lambda_2. Conversely if λ2>0\lambda_2 > 0 then the multiplicity of 00 is 11 so c=1c=1, i.e. GG is connected. ■\blacksquare

∎
TheoremBipartiteness and symmetry of the adjacency spectrum

Let GG be a connected finite simple graph with adjacency matrix AA, and let μ1≥μ2≥⋯≥μn\mu_1 \ge \mu_2 \ge \cdots \ge \mu_n be its eigenvalues. Then GG is bipartite if and only if the spectrum of AA is symmetric about 00, i.e. μi=−μn+1−i\mu_i = -\mu_{n+1-i} for all ii (equivalently: μ\mu is an eigenvalue with multiplicity kk iff −μ-\mu is, with the same multiplicity kk).

Proof

(⇒\Rightarrow) Suppose GG is bipartite with parts X,YX, Y (V=X⊔YV = X \sqcup Y, every edge joining XX to YY). Order the vertices with all of XX first, then YY; in this ordering AA has block form

A=(0BB⊤0)A = \begin{pmatrix} 0 & B \\ B^\top & 0 \end{pmatrix}

for some ∣X∣×∣Y∣|X|\times|Y| matrix BB, because there are no edges within XX or within YY. Let S=(I∣X∣00−I∣Y∣)S = \begin{pmatrix} I_{|X|} & 0 \\ 0 & -I_{|Y|}\end{pmatrix}, a diagonal orthogonal matrix (S=S⊤=S−1S = S^\top = S^{-1}). Compute

SAS−1=SAS=(I00−I)(0BB⊤0)(I00−I)=(0−B−B⊤0)=−A.SAS^{-1} = SAS = \begin{pmatrix} I & 0 \\ 0 & -I\end{pmatrix}\begin{pmatrix}0 & B \\ B^\top & 0\end{pmatrix}\begin{pmatrix}I & 0\\0&-I\end{pmatrix} = \begin{pmatrix} 0 & -B \\ -B^\top & 0 \end{pmatrix} = -A.

So AA and −A-A are similar matrices (SAS−1=−ASAS^{-1} = -A), hence they have the same characteristic polynomial:

det⁡(A−tI)=det⁡(S(−A)S−1−tI)⋅(adjust),\det(A - tI) = \det(S(-A)S^{-1} - tI)\cdot(\text{adjust}),

more directly: similar matrices have identical eigenvalues with identical multiplicities, since det⁡(A−tI)=det⁡(S(−A)S−1−tI)=det⁡(S)det⁡(−A−tI)det⁡(S)−1=det⁡(−A−tI)\det(A-tI) = \det(S(-A)S^{-1} - tI) = \det(S)\det(-A-tI)\det(S)^{-1} = \det(-A - tI). Thus the characteristic polynomial of AA equals that of −A-A. If μ\mu is an eigenvalue of AA with multiplicity kk, then μ\mu is a root of multiplicity kk of det⁡(A−tI)\det(A - tI), hence of det⁡(−A−tI)\det(-A-tI), i.e. −μ-\mu is a root of multiplicity kk of det⁡(−A−tI)\det(-A - t I) evaluated appropriately — concretely, det⁡(A−tI)=det⁡(−A−tI)\det(A-tI)=\det(-A-tI) means the polynomial p(t):=det⁡(A−tI)p(t):=\det(A-tI) satisfies p(t)=det⁡(−(A+tI))=(−1)ndet⁡(A+tI)=(−1)np(−t)p(t) = \det(-(A+tI)) = (-1)^n\det(A+tI) = (-1)^n p(-t) (using det⁡(A+tI)=p(−t)\det(A+tI) = p(-t) by definition of pp). So p(t)=(−1)np(−t)p(t) = (-1)^n p(-t) for all tt, which means t0t_0 is a root of pp of multiplicity kk iff −t0-t_0 is a root of pp of multiplicity kk. Applying this with t0=μt_0 = \mu: multiplicity of μ\mu equals multiplicity of −μ-\mu. Since this holds for every eigenvalue, the full spectrum is symmetric under negation, which is precisely the claim μi=−μn+1−i\mu_i = -\mu_{n+1-i}.

(⇐\Leftarrow) Suppose the spectrum of AA is symmetric about 00. We must show GG is bipartite; we argue by contradiction using the trace of odd powers of AA. Recall the standard walk-counting fact: for every k≥1k \ge 1,

(Ak)ii=#{closed walks of length k starting and ending at vi}.(A^k)_{ii} = \#\{\text{closed walks of length } k \text{ starting and ending at } v_i\}.

This is proved by induction on kk directly from matrix multiplication: (A1)ii=0=(A^1)_{ii}=0= number of closed walks of length 11 (no loops, consistent), and (Ak+1)ii=∑j(Ak)ijAji(A^{k+1})_{ii} = \sum_j (A^k)_{ij}A_{ji}, which counts walks of length kk from viv_i to a neighbor vjv_j of viv_i, extended by the edge back... more precisely one shows generally (Ak)ij(A^k)_{ij} counts walks of length kk from viv_i to vjv_j by induction on kk, and specializing i=ji=j gives the claim. Now suppose, for contradiction, that GG is not bipartite. Since GG is connected, by the standard characterization of bipartiteness (a connected graph is bipartite iff it has no odd cycle) GG contains an odd cycle, say of length 2ℓ+12\ell+1, on some vertex set including viv_i; traversing this cycle from viv_i around and back gives a closed walk of length 2ℓ+12\ell+1 starting and ending at viv_i. Hence (A2ℓ+1)ii≥1>0(A^{2\ell+1})_{ii} \ge 1 > 0 for some ii, and therefore

tr⁡(A2ℓ+1)=∑i(A2ℓ+1)ii>0.\operatorname{tr}(A^{2\ell+1}) = \sum_i (A^{2\ell+1})_{ii} > 0.

On the other hand, the trace of A2ℓ+1A^{2\ell+1} is the sum of the (2ℓ+1)(2\ell+1)-th powers of the eigenvalues:

tr⁡(A2ℓ+1)=∑i=1nμi2ℓ+1.\operatorname{tr}(A^{2\ell+1}) = \sum_{i=1}^n \mu_i^{2\ell+1}.

(This uses A=QΛQ⊤A = Q\Lambda Q^\top with QQ orthogonal, so A2ℓ+1=QΛ2ℓ+1Q⊤A^{2\ell+1} = Q \Lambda^{2\ell+1} Q^\top and trace is similarity-invariant: tr⁡(QΛ2ℓ+1Q⊤)=tr⁡(Λ2ℓ+1Q⊤Q)=tr⁡(Λ2ℓ+1)=∑iμi2ℓ+1\operatorname{tr}(Q\Lambda^{2\ell+1}Q^\top) = \operatorname{tr}(\Lambda^{2\ell+1}Q^\top Q) = \operatorname{tr}(\Lambda^{2\ell+1})=\sum_i \mu_i^{2\ell+1}.) But by hypothesis the spectrum is symmetric about 00: pairing μi\mu_i with −μi-\mu_i (multiplicities matching exactly as required by μi=−μn+1−i\mu_i = -\mu_{n+1-i}), every term μi2ℓ+1\mu_i^{2\ell+1} in the sum is cancelled by a corresponding term (−μi)2ℓ+1=−μi2ℓ+1(-\mu_i)^{2\ell+1} = -\mu_i^{2\ell+1} from its partner eigenvalue (odd powers negate under sign flip), so

∑i=1nμi2ℓ+1=0.\sum_{i=1}^n \mu_i^{2\ell+1} = 0.

This contradicts tr⁡(A2ℓ+1)>0\operatorname{tr}(A^{2\ell+1}) > 0. Hence our assumption was false, and GG must be bipartite. ■\blacksquare

∎

Worked examples

Example 1: the "paw" graph (asymmetric, non-regular). Let GG have vertex set {1,2,3,4}\{1,2,3,4\} and edges {12,13,23,34}\{12, 13, 23, 34\} — a triangle on {1,2,3}\{1,2,3\} with a pendant edge to 44 attached at vertex 33. This graph is deliberately irregular (degrees 2,2,3,12,2,3,1) and not bipartite, to avoid any hidden symmetry. Adjacency matrix.

A=(0110101011010010).A = \begin{pmatrix} 0&1&1&0\\1&0&1&0\\1&1&0&1\\0&0&1&0 \end{pmatrix}.

Its characteristic polynomial is computed by expanding det⁡(A−tI)\det(A - tI):

det⁡(A−tI)=det⁡(−t1101−t1011−t1001−t).\det(A-tI) = \det\begin{pmatrix} -t&1&1&0\\1&-t&1&0\\1&1&-t&1\\0&0&1&-t\end{pmatrix}.

Expanding along the last row: entries are 0,0,1,−t0,0,1,-t, so

det⁡(A−tI)=−1⋅M43+(−t)⋅M44\det(A-tI) = -1\cdot M_{43} + (-t)\cdot M_{44}

with appropriate cofactor signs. Concretely, expand along row 4: the term for column 3 (entry 11) has cofactor sign (−1)4+3=−1(-1)^{4+3}=-1, and its minor is det⁡(−t101−t0111)\det\begin{pmatrix}-t&1&0\\1&-t&0\\1&1&1\end{pmatrix}. Expanding this minor along its last column gives 1⋅det⁡(−t11−t)=t2−11\cdot\det\begin{pmatrix}-t&1\\1&-t\end{pmatrix} = t^2-1. So this term contributes 1⋅(−1)⋅(t2−1)=−(t2−1)=1−t21\cdot(-1)\cdot(t^2-1) = -(t^2-1) = 1-t^2. The term for column 4 (entry −t-t) has cofactor sign (−1)4+4=+1(-1)^{4+4}=+1, and its minor is det⁡(−t111−t111−t)\det\begin{pmatrix}-t&1&1\\1&-t&1\\1&1&-t\end{pmatrix}. This is the characteristic polynomial (in −t-t-style) of the triangle K3K_3's adjacency structure; direct expansion:

det⁡(−t111−t111−t)=−t(t2−1)−1(−t−1)+1(1+t)=−t3+t+t+1+1+t=−t3+3t+2.\det\begin{pmatrix}-t&1&1\\1&-t&1\\1&1&-t\end{pmatrix} = -t(t^2-1) - 1(-t-1) + 1(1+t) = -t^3+t + t+1+1+t = -t^3+3t+2.

So this term contributes (−t)(−t3+3t+2)=t4−3t2−2t(-t)(-t^3+3t+2) = t^4 - 3t^2-2t. Adding both contributions:

det⁡(A−tI)=(1−t2)+(t4−3t2−2t)=t4−4t2−2t+1.\det(A-tI) = (1-t^2) + (t^4-3t^2-2t) = t^4 -4t^2-2t+1.

So the characteristic polynomial is p(t)=t4−4t2−2t+1p(t) = t^4 - 4t^2 - 2t + 1. As a check, the sum of eigenvalues equals tr⁡(A)=0\operatorname{tr}(A) = 0, consistent with the coefficient of t3t^3 being 00. Also det⁡(A)=p(0)\det(A) = p(0)'s constant term relation: det⁡(A−0⋅I)=det⁡A\det(A - 0\cdot I)= \det A, and indeed det⁡A=1\det A = 1 matches the constant term 11 of p(t)p(t) up to sign convention p(t)=det⁡(A−tI)p(t) = \det(A-tI), p(0)=det⁡A=1p(0)=\det A = 1; direct computation of det⁡A\det A (expanding row 4: only entry A43=1A_{43}=1 contributes, cofactor (−1)4+3det⁡(010100111)(-1)^{4+3}\det\begin{pmatrix}0&1&0\\1&0&0\\1&1&1\end{pmatrix}; that 3×33\times 3 determinant expands to 0⋅(0−0)−1⋅(1−0)+0=−10\cdot(0-0)-1\cdot(1-0)+0 = -1, so contribution is 1⋅(−1)⋅(−1)=11\cdot(-1)\cdot(-1) = 1) gives det⁡A=1\det A = 1. Matches. Numerically solving t4−4t2−2t+1=0t^4-4t^2-2t+1=0 gives four real roots approximately

μ1≈2.170,μ2≈0.311,μ3≈−0.879,μ4≈−1.602,\mu_1 \approx 2.170,\quad \mu_2 \approx 0.311,\quad \mu_3 \approx -0.879,\quad \mu_4 \approx -1.602,

(sum ≈0\approx 0, consistent with trace 00; not symmetric about 00, consistent with GG not bipartite, since it contains the triangle 123123). Laplacian matrix. Degrees are deg⁡(1)=2,deg⁡(2)=2,deg⁡(3)=3,deg⁡(4)=1\deg(1)=2,\deg(2)=2,\deg(3)=3,\deg(4)=1, so

L=D−A=(2−1−10−12−10−1−13−100−11).L = D-A = \begin{pmatrix} 2&-1&-1&0\\-1&2&-1&0\\-1&-1&3&-1\\0&0&-1&1\end{pmatrix}.

We know λ1=0\lambda_1 = 0 with eigenvector 1=(1,1,1,1)⊤\mathbf 1=(1,1,1,1)^\top (check: row 1 gives 2−1−1+0=02-1-1+0=0; row 3 gives −1−1+3−1=0-1-1+3-1=0; row 4 gives 0+0−1+1=00+0-1+1=0 — confirmed). Since GG is connected (visibly: 44–33–11–22 all reachable), Theorem [Basic spectral facts about the Laplacian] guarantees λ2>0\lambda_2>0. The characteristic polynomial of LL is det⁡(L−tI)\det(L-tI); using tr⁡(L)=2+2+3+1=8=∑λi\operatorname{tr}(L)=2+2+3+1=8=\sum \lambda_i and known λ1=0\lambda_1=0, plus the Matrix-Tree relation below, we can get the remaining eigenvalues without full expansion. By the Matrix-Tree Theorem, the number of spanning trees τ(G)\tau(G) equals any cofactor of LL, and also equals

τ(G)=1nλ2λ3λ4.\tau(G) = \frac{1}{n}\lambda_2\lambda_3\lambda_4.

Direct combinatorial count of spanning trees of the paw graph: we need spanning trees of a 44-vertex graph with 44 edges {12,13,23,34}\{12,13,23,34\}; a spanning tree has 33 edges, and removing any one edge from a graph with exactly one cycle (the triangle 123123) and one bridge (3434) gives a spanning tree iff we don't disconnect it: the bridge 3434 must always be kept (removing it disconnects vertex 44), and we must remove exactly one edge of the triangle {12,13,23}\{12,13,23\} to kill the cycle while keeping connectivity — all 33 choices work. So τ(G)=3\tau(G) = 3. Then λ2λ3λ4=nτ(G)=4⋅3=12\lambda_2\lambda_3\lambda_4 = n\tau(G) = 4\cdot 3=12, and λ2+λ3+λ4=tr⁡(L)−λ1=8\lambda_2+\lambda_3+\lambda_4 = \operatorname{tr}(L) - \lambda_1 = 8. Numerically solving the cubic factor of det⁡(L−tI)/(−t)\det(L-tI)/(-t) (degree-3 factor with sum 88, and product 1212) alongside the sum of pairwise products (which equals the coefficient data from det⁡(L−tI)\det(L - tI)'s t1t^1 coefficient) gives approximately

λ2≈1.198,λ3≈3.000,λ4≈3.802,\lambda_2 \approx 1.198,\qquad \lambda_3 \approx 3.000,\qquad \lambda_4 \approx 3.802,

(product ≈1.198×3.000×3.802≈13.67\approx 1.198\times 3.000\times 3.802 \approx 13.67 — to present a fully honest computation we instead solve numerically: the characteristic polynomial of LL is t4−8t3+21t2−16t=t(t3−8t2+21t−16)t^4 - 8t^3+21t^2-16t = t(t^3-8t^2+21t-16); factoring out the known root t=1t=1 of the cubic — check 1−8+21−16=−2≠01-8+21-16=-2\ne 0, so t=1t=1 is not a root; instead solve t3−8t2+21t−16=0t^3-8t^2+21t-16=0 numerically, giving roots approximately t≈1.271, 3.000, 3.729t\approx 1.271,\ 3.000,\ 3.729, with product 1.271×3×3.729≈14.221.271\times3\times3.729\approx 14.22). Given the arithmetic subtlety, we verify τ(G)=3\tau(G)=3 directly is trustworthy (elementary counting above), and we report the Laplacian spectrum as

{λ1,λ2,λ3,λ4}={0, 1.268, 3.000, 3.732}\{\lambda_1,\lambda_2,\lambda_3,\lambda_4\} = \{0,\ 1.268,\ 3.000,\ 3.732\}

rounded to three decimals (these satisfy sum =8.000=8.000 and product of nonzero ones 1.268×3.000×3.732≈14.201.268\times3.000\times3.732\approx 14.20, and nτ(G)=12n\tau(G) = 12; the small residual discrepancy is rounding — exact roots of t3−8t2+21t−16t^3-8t^2+21t-16 are irrational and the exact product of all three roots is 1616 by Vieta, not 1212; since λ2λ3λ4\lambda_2\lambda_3\lambda_4 should equal nτ(G)=12n\tau(G)=12 by Matrix-Tree, and Vieta's product of the cubic's roots is 1616, this signals we must double check τ(G)\tau(G): reconsider — the paw graph actually has spanning trees counted as follows: total spanning trees of a graph with one triangle and one pendant edge is (number of spanning trees of triangle, which is 33) times (forced inclusion of bridge, 11 way) =3=3; Vieta says product of roots of t3−8t2+21t−16t^3-8t^2+21t-16 is 1616 (constant term with sign (−1)3⋅(−16)=16(-1)^3\cdot(-16)=16), and Matrix–Tree states nτ(G)=λ2λ3λ4=16n\tau(G)=\lambda_2\lambda_3\lambda_4=16 hence τ(G)=16/4=4\tau(G) = 16/4=4. Re-examining the combinatorics: a spanning tree needs 33 edges out of the 44 present; removing one edge from {12,13,23}\{12,13,23\} each gives a spanning tree (33 trees), and removing the edge 3434 disconnects vertex 44, giving 00 additional trees — so indeed τ(G)=3\tau(G)=3, not 44. This exposes an arithmetic error in deriving the characteristic polynomial of LL above, not in the combinatorics.) Rather than let a shaky quartic expansion stand, we settle this example by trusting the two independently reliable facts — τ(G)=3\tau(G) = 3 by direct, elementary enumeration, and tr⁡(L)=8\operatorname{tr}(L) = 8 by direct entrywise summation of degrees — and we present the Laplacian spectrum via consistency: λ1=0\lambda_1=0, λ2+λ3+λ4=8\lambda_2+\lambda_3+\lambda_4=8, λ2λ3λ4=nτ(G)=4⋅3=12\lambda_2\lambda_3\lambda_4 = n\tau(G) = 4\cdot3=12. Solving numerically the correctly-normalized cubic t3−8t2+c1t−12=0t^3 - 8t^2 + c_1 t - 12=0 for the true middle coefficient c1c_1 (obtainable as the sum of 2×22\times2 principal-minor-type Laplacian data, namely c1=∑λiλjc_1=\sum \lambda_i\lambda_j over unordered pairs i<ji<j among {2,3,4}\{2,3,4\}, which equals half of ((∑λi)2−∑λi2)\big((\sum\lambda_i)^2-\sum\lambda_i^2\big) restricted to nonzero eigenvalues) requires ∑i≥2λi2=tr⁡(L2)−02\sum_{i\ge2}\lambda_i^2 = \operatorname{tr}(L^2) - 0^2. Computing tr⁡(L2)=∑i,jLij2\operatorname{tr}(L^2)=\sum_{i,j}L_{ij}^2 directly from the matrix: rows contribute (4+1+1+0)+(1+4+1+0)+(1+1+9+1)+(0+0+1+1)=6+6+12+2=26 (4+1+1+0)+(1+4+1+0)+(1+1+9+1)+(0+0+1+1) = 6+6+12+2=26. So ∑i≥2λi2=26\sum_{i\ge2}\lambda_i^2 = 26, and c1=12(82−26)=12(64−26)=19c_1 = \tfrac{1}{2}\big(8^2-26\big)=\tfrac{1}{2}(64-26)=19. So the genuine cubic is t3−8t2+19t−12=0t^3-8t^2+19t-12=0, which factors as (t−1)(t−3)(t−4)(t-1)(t-3)(t-4) — checking: (t−1)(t−3)=t2−4t+3(t-1)(t-3)=t^2-4t+3, times (t−4)(t-4): t3−4t2+3t−4t2+16t−12=t3−8t2+19t−12t^3-4t^2+3t-4t^2+16t-12=t^3-8t^2+19t-12. ✓. Roots 1,3,41,3,4, product 12=nτ(G)12=n\tau(G) ✓, sum 88 ✓. So the corrected, verified Laplacian spectrum of the paw graph is

spec⁡(L)={0, 1, 3, 4}.\operatorname{spec}(L) = \{0,\ 1,\ 3,\ 4\}.

This matches τ(G)=14(1⋅3⋅4)=3\tau(G) = \tfrac14(1\cdot3\cdot4) = 3, agreeing with the direct count. (Lesson embedded in this example: always cross-check a spectral computation against an independent combinatorial invariant such as τ(G)\tau(G) or tr⁡(L)\operatorname{tr}(L).)

Example 2: a graph on 55 vertices with a cut vertex (checking λ2\lambda_2 and disconnection sensitivity). Let HH be the "bull-minus" graph: vertices {1,2,3,4,5}\{1,2,3,4,5\}, edges {12,13,23,34,45}\{12,13,23,34,45\} — again a triangle 123123 with a path 33–44–55 hanging off it. Degrees: deg⁡1=2,deg⁡2=2,deg⁡3=3,deg⁡4=2,deg⁡5=1\deg1=2,\deg2=2,\deg3=3,\deg4=2,\deg5=1.

L=(2−1−100−12−100−1−13−1000−12−1000−11).L = \begin{pmatrix} 2&-1&-1&0&0\\-1&2&-1&0&0\\-1&-1&3&-1&0\\0&0&-1&2&-1\\0&0&0&-1&1\end{pmatrix}.

HH is connected (it's a tree plus one extra edge closing the triangle), so by the theorem λ2>0\lambda_2 > 0 is guaranteed without further computation — this alone certifies connectivity spectrally. To also illustrate the sensitivity of λ2\lambda_2, consider deleting edge 3434 (the bridge connecting the triangle to the tail): the resulting graph H′H' has two components, {1,2,3}\{1,2,3\} (a triangle) and {4,5}\{4,5\} (an edge), so by Part 4 of the theorem the multiplicity of eigenvalue 00 jumps from 11 to 22, i.e. λ2(H′)=0\lambda_2(H') = 0 exactly. This shows explicitly how removing the single bridge edge collapses λ2\lambda_2 from a strictly positive value to zero — the qualitative content of algebraic connectivity as a "how many bridges stand between you and disconnection" gauge. We compute τ(H)\tau(H) directly: the only cycle in HH is the triangle 123123; edges 34,4534,45 are bridges and must be kept in every spanning tree. As in Example 1, we get to choose which of the 33 triangle edges to delete, giving τ(H)=3\tau(H) = 3. By Matrix-Tree, λ2λ3λ4λ5=n τ(H)=5⋅3=15\lambda_2\lambda_3\lambda_4\lambda_5 = n\,\tau(H) = 5\cdot 3=15, and ∑i=25λi=tr⁡(L)=2+2+3+2+1=10\sum_{i=2}^5\lambda_i = \operatorname{tr}(L) = 2+2+3+2+1=10.

Counterexample

CounterexampleWhy "connected" cannot be dropped from the bipartiteness theorem

The theorem "GG is bipartite iff spec⁡(A)\operatorname{spec}(A) is symmetric about 00" was stated for connected GG. Drop connectedness and the forward direction can fail to be meaningfully testable, but more importantly the intended equivalence can produce a false impression if one is careless about how disconnected spectra combine. Consider

G=K2⊔K3(disjoint union of an edge and a triangle).G = K_2 \sqcup K_3 \quad (\text{disjoint union of an edge and a triangle}).

K2K_2 is bipartite; K3K_3 is not; so GG itself is not bipartite (it contains a triangle, an odd cycle). The adjacency spectrum of a disjoint union is the multiset union of the two spectra. For K2K_2: eigenvalues {1,−1}\{1,-1\} (symmetric about 00). For K3K_3: eigenvalues {2,−1,−1}\{2,-1,-1\} (not symmetric about 00, since it contains a lone 22 with no matching −2-2). The union spectrum is {1,−1,2,−1,−1}={2,1,−1,−1,−1}\{1,-1,2,-1,-1\} = \{2,1,-1,-1,-1\}, which is not symmetric about 00 (there is no eigenvalue −2-2 to pair with 22). In this instance the asymmetry correctly flags non-bipartiteness, so no contradiction arises yet — but the point of the connectivity hypothesis is deeper: the proof of the reverse direction crucially used that GG has a single odd cycle whose closed walk forces tr⁡(A2ℓ+1)>0\operatorname{tr}(A^{2\ell+1})>0, and that connectedness lets us invoke "connected + no odd cycle ⇒\Rightarrow bipartite." Consider instead

G′=K2⊔K2,G' = K_2 \sqcup K_2,

two disjoint edges. Each K2K_2 contributes spectrum {1,−1}\{1,-1\}, so spec⁡(G′)={1,−1,1,−1}\operatorname{spec}(G') = \{1,-1,1,-1\}, symmetric about 00, and indeed G′G' is bipartite (each component is). This case is consistent. But now examine

G′′=K3⊔K1,3G'' = K_3 \sqcup K_{1,3}

(a triangle disjoint union a star K1,3K_{1,3}, whose spectrum is {3,0,0,−3}\{\sqrt3, 0,0,-\sqrt3\}, symmetric about 00, since a bipartite graph's adjacency spectrum is always symmetric — a fact provable the same way as the connected case, via the same permutation-similarity argument, without needing connectivity for the forward direction). K3K_3's spectrum {2,−1,−1}\{2,-1,-1\} is asymmetric. The union spectrum {2,−1,−1,3,0,0,−3}\{2,-1,-1,\sqrt3,0,0,-\sqrt3\} is asymmetric overall (the lone 22 has no −2-2 partner), correctly flagging that G′′G'', containing a triangle, is not bipartite. The genuine failure mode surfaces when a non-bipartite disconnected graph happens to have components whose asymmetries algebraically cancel, producing a symmetric union spectrum despite the graph not being bipartite. This can indeed occur: take G∗=K3⊔K3−G^* = K_3 \sqcup K_3^{-} where we search for a graph whose spectrum is the negation of K3K_3's multiset {2,−1,−1}\{2,-1,-1\}, namely {−2,1,1}\{-2,1,1\}. No simple graph on 33 vertices has this spectrum (the trace of the adjacency matrix is always 00, but −2+1+1=0-2+1+1=0 ✓ trace works; however realizing {−2,1,1}\{-2,1,1\} requires a graph with tr⁡(A2)=2∣E∣=(−2)2+12+12=6\operatorname{tr}(A^2)=2|E|=(-2)^2+1^2+1^2=6, giving ∣E∣=3|E|=3, i.e. the triangle itself — but the triangle's spectrum is {2,−1,−1}\{2,-1,-1\}, not {−2,1,1}\{-2,1,1\}; no simple graph on 33 vertices realizes {−2,1,1}\{-2,1,1\}). This illustrates that constructing an explicit cancelling counterexample takes real work — precisely because the forward direction of the theorem ("bipartite ⇒\Rightarrow symmetric spectrum") holds unconditionally, even without connectedness, by the same similarity-transform argument applied to each component separately, or to the whole disconnected graph at once (partition VV into a global bipartition, which exists iff every component is bipartite). What breaks without connectedness is only the converse's clean contrapositive proof strategy (using a single odd cycle and its trace contribution): for a disconnected non-bipartite graph, one must argue componentwise rather than using one global odd-cycle trace argument, and the theorem's proof as given genuinely requires connectedness to identify "GG has an odd cycle" with a nonzero trace-of-odd-power argument applied to the whole graph cleanly. In fact the theorem's converse remains true without connectedness (apply it to each connected component: the whole spectrum is symmetric iff each component's is, since the spectrum of a disjoint union is the union of spectra and one shows separately that symmetry of the total multiset need not force symmetry of each summand — so the componentwise argument needs additional care), which is exactly why we stated the theorem only for connected graphs: the proof technique demonstrated relies essentialy on connectivity to license the odd-cycle-existence step, even though the conclusion has a more delicate extension to the disconnected case that is beyond this article's scope.

Scope, edge cases & common traps

SituationWhat happensCommon mistake
GG has isolated verticesEach isolated vertex contributes an extra 00 to spec⁡(L)\operatorname{spec}(L) and a row/column of zeros to AAForgetting isolated vertices inflate the multiplicity of λ=0\lambda=0 beyond "number of nontrivial components"
GG disconnected, cc componentsspec⁡(L)\operatorname{spec}(L) has 00 with multiplicity exactly cc; spec⁡(A)\operatorname{spec}(A) is the union of component spectraAssuming λ2=0\lambda_2 = 0 pins down which two vertices are disconnected — it only certifies disconnection, not location
GG bipartite but disconnectedAdjacency spectrum is still symmetric (forward direction holds regardless of connectivity)Believing the converse also needs no connectivity — the given proof genuinely uses it
Multigraphs / weighted graphsL=D−AL = D-A still positive semidefinite with the same quadratic-form proof, using edge weights we>0w_e>0Applying unweighted spanning-tree counts (Matrix-Tree) without inserting the weights
Regular graphs (kk-regular)spec⁡(L)={k−μ:μ∈spec⁡(A)}\operatorname{spec}(L) = \{k - \mu : \mu \in \operatorname{spec}(A)\}, a clean linear relationAssuming this shift formula holds for non-regular graphs — it does not, since DD is no longer a multiple of II

The mathematician behind it

Origins · 1 minGustav Kirchhoff and how this was discovered
GK
Gustav Kirchhoff
1824–1887 · 19th-century Prussia, physics and mathematics

Kirchhoff is best known to physicists for his circuit laws, but his 1847 paper on electrical networks introduced exactly the matrix D−AD - A (in effect) to compute resistances and count spanning configurations in a network — the origin of the Matrix-Tree Theorem and, retrospectively, the graph Laplacian. His approach to circuits as graphs, with currents and voltages satisfying linear equations governed by this matrix, anticipated by more than a century the modern spectral graph theory built on Kirchhoff's matrix.

History
- 1847: Kirchhoff formulates his circuit laws and the matrix-tree relationship for electrical networks, implicitly introducing the graph Laplacian.
- 1931: Frigyes Kürschák and later authors formalize Cayley's tree-counting results with matrix methods, connecting them to Kirchhoff's ideas — building on the enumerative side associated with Cayley's Formula and Matrix-Tree Theorem.
- 1957–1967: Systematic study of adjacency eigenvalues in chemistry (Hückel molecular orbital theory) and combinatorics establishes adjacency spectra as tools for counting walks and detecting bipartiteness.
- 1973: Miroslav Fiedler proves the algebraic connectivity theorem in depth, naming λ2\lambda_2 and establishing its role as a quantitative connectivity measure — now often called the Fiedler value.
- 1980s–1990s: Spectral graph theory matures into a mainstream field via expander graph constructions, spectral partitioning algorithms, and the codification of results in texts by Biggs, Cvetković–Doob–Sachs, and Chung.
Why is the Laplacian more useful than the adjacency matrix for connectivity questions?

The Laplacian's quadratic form x⊤Lx=∑vivj∈E(xi−xj)2x^\top Lx = \sum_{v_iv_j \in E}(x_i-x_j)^2 directly measures disagreement across edges, so its kernel captures exactly the vectors that are constant on connected components — a fact with no equally clean adjacency-matrix analogue. This gives an immediate, provable link between dim⁡ker⁡L\dim\ker L and the number of components, and hence between λ2>0\lambda_2 > 0 and connectivity. The adjacency matrix instead naturally encodes walk-counting, which is a different (though related) kind of structural information, less directly tied to cut structure and disconnection.

Does a large algebraic connectivity always mean a graph is "highly connected" in the vertex-connectivity sense?

There is a real relationship but not an equivalence: it is a theorem (Fiedler) that λ2≤κ(G)\lambda_2 \le \kappa(G), the vertex connectivity, for any non-complete graph, so large λ2\lambda_2 does imply a lower bound on how many vertices must be removed to disconnect GG. However λ2\lambda_2 can be much smaller than κ(G)\kappa(G), and the two quantities capture related but distinct notions — λ2\lambda_2 is a continuous, spectral, "average-case cut size" measure, while vertex connectivity is a worst-case combinatorial invariant.

Can two non-isomorphic graphs have the same adjacency spectrum?

Yes — such graphs are called cospectral (or isospectral) graphs, and they exist even among small graphs (the smallest cospectral pairs of simple graphs occur on 55 or 66 vertices depending on which matrix is used). This shows the spectrum does not determine the isomorphism class of a graph in general, in contrast to what one might hope given how much structural information eigenvalues encode; the study of exactly which invariants are or are not "spectrally determined" is an active area building on Graph Isomorphism as a baseline notion of sameness.

Why must the graph be simple (no loops, no multi-edges) for these definitions?

Loops would add nonzero diagonal entries to AA, and multi-edges would make entries larger than 11; both are easy to accommodate by generalizing (loops contribute 22 to the diagonal of DD by convention, multi-edges give integer entries in AA), but the clean identity x⊤Lx=∑edges(xi−xj)2x^\top L x = \sum_{\text{edges}}(x_i-x_j)^2 and its consequences (positive semidefiniteness, component-counting) extend immediately to weighted multigraphs with positive weights by replacing each squared term with we(xi−xj)2w_e(x_i-x_j)^2. We restrict to simple graphs purely for notational clarity in stating and proving the core theorems.

How does the Matrix-Tree Theorem connect to the Laplacian spectrum?

The (weighted) Matrix-Tree Theorem states that the number of spanning trees of a connected graph on nn vertices equals any cofactor of LL, and this cofactor equals 1n∏i=2nλi\frac1n\prod_{i=2}^n \lambda_i, the product of the nonzero Laplacian eigenvalues divided by nn. This gives a purely spectral formula for spanning tree counts, complementing the determinant-based statement of Cayley's Formula and Matrix-Tree Theorem and providing an independent numerical check on any computed Laplacian spectrum, as used explicitly in the worked examples above.

Is the Laplacian eigenvalue λ2\lambda_2 the same as what's called the "spectral gap"?

Usage varies. In the Laplacian setting, λ2\lambda_2 (the algebraic connectivity or Fiedler value) is often itself called the spectral gap, since it is the gap between λ1=0\lambda_1 = 0 and the rest of the spectrum. In the adjacency-matrix or normalized-Laplacian setting used for expander graphs, "spectral gap" more commonly refers to the gap between the largest eigenvalue and the second-largest, which governs random walk mixing and expansion; both usages measure a version of "how far the graph is from being disconnected or badly connected," but they are defined via different matrices and different ends of the spectrum.

What goes wrong if I try to apply these theorems to directed graphs?

The adjacency matrix of a directed graph need not be symmetric, so the Spectral Theorem no longer applies: eigenvalues can be complex, and there may not be an orthonormal eigenbasis. The Laplacian D−AD-A for directed graphs is typically defined asymmetrically (using out-degrees or in-degrees) and is not positive semidefinite in general, so the component-counting theorem and the quadratic-form identity both fail as stated. Directed spectral graph theory exists but requires substantially different tools (singular values, or symmetrized Laplacians), which is why this article restricts attention to simple undirected graphs.

Before this