Matrix as Graph distinguishes adjacency, incidence, and transition matrices. Spectral graph theory asks how their eigenvalues reflect global structure. This first version assumes a finite, undirected graph with nonnegative weights.

Zero weights and connectivity

Zero-weight edges contribute no energy. The zero-eigenvalue multiplicity counts connected components of the positive-weight support graph. Treating a zero-weight edge as a genuine connection would break that statement. Here zero-weight edges are absent and graphs have no self-loops.

The Laplacian measures differences more directly than adjacency

Let AA be the adjacency matrix and D=diag⁡(d1,…,dn)D=\operatorname{diag}(d_1,\ldots,d_n), where di=∑jaijd_i=\sum_j a_{ij}. The combinatorial Laplacian is

L=D−A.L=D-A.

For a signal x\mathbf x on the vertices,

(Lx)i=∑jaij(xi−xj).(L\mathbf x)_i=\sum_j a_{ij}(x_i-x_j).

It accumulates differences between one vertex and its neighbors. A constant signal has no differences, so L1=0L\mathbf1=\mathbf0.

The incidence matrix gives the same operator

Choose an arbitrary orientation for every undirected edge. Put −1-1 at its tail and 11 at its head in the corresponding column of an incidence matrix BB. If WW is the diagonal matrix of edge weights, then

L=BWBT.L=BWB^{\mathsf T}.

Reversing one temporary orientation multiplies a column of BB by −1-1 and leaves the product unchanged. Orientation is bookkeeping here rather than part of the undirected graph.

Entrywise, the column for edge {i,j}\{i,j\} contributes wijw_{ij} to diagonal positions (i,i),(j,j)(i,i),(j,j) and −wij-w_{ij} to (i,j),(j,i)(i,j),(j,i), with zero elsewhere. Summing edges gives precisely D−AD-A, proving the incidence identity.

A quadratic form measures graph-signal roughness

The incidence factorization gives

xTLx=∑{i,j}∈Ewij(xi−xj)2≥0.\mathbf x^{\mathsf T}L\mathbf x =\sum_{\{i,j\}\in E}w_{ij}(x_i-x_j)^2\ge0.

Thus LL is symmetric positive semidefinite. The energy is small when adjacent values are close and large when the signal changes sharply across edges.

The energy vanishes exactly when values agree across every edge. A null vector is constant on each connected component, so the multiplicity of eigenvalue zero equals the number of connected components.

ProofKernel and connected components

If Lx=0L\mathbf x=0, its energy is zero. Since every retained edge weight is positive, each squared difference is zero. Equality propagates along paths, making x\mathbf x constant on each component. Conversely such a signal gives (Lx)i=0(L\mathbf x)_i=0 directly from the neighbor-difference formula. The component indicators are independent (their supports are disjoint) and span all these signals. Thus the kernel dimension is exactly the number of components. The spectral theorem identifies this dimension with the algebraic multiplicity of zero.

The second eigenvalue measures the weakest connection

For a connected graph,

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

The value λ2\lambda_2 is the algebraic connectivity. The Rayleigh characterization is

λ2=min⁡x⊥1, x≠0∑{i,j}wij(xi−xj)2∥x∥2.\lambda_2=\min_{\mathbf x\perp\mathbf1,\,\mathbf x\ne0} \frac{\sum_{\{i,j\}}w_{ij}(x_i-x_j)^2}{\|\mathbf x\|^2}.

If a weak connection separates two clusters, a signal that is nearly constant on each side changes mainly across that cut and has low energy. The associated Fiedler vector can suggest a bipartition.

Assume n≥2n\ge2 here. Choose the first unit eigenvector as q1=1/n\mathbf q_1=\mathbf1/\sqrt n. A vector perpendicular to 1\mathbf1 has expansion ∑i=2nciqi\sum_{i=2}^n c_i\mathbf q_i, so its Rayleigh quotient is ∑i=2nλici2/∑i=2nci2≥λ2\sum_{i=2}^n\lambda_i c_i^2/\sum_{i=2}^n c_i^2\ge\lambda_2, with equality at q2\mathbf q_2. This proves the stated minimum.

For a cut into nonempty sets S,TS,T, write s=∣S∣s=|S|, t=∣T∣t=|T|, and choose xi=t/sx_i=\sqrt{t/s} on SS and xi=−s/tx_i=-\sqrt{s/t} on TT. Then x⊥1\mathbf x\perp\mathbf1, ∥x∥2=s+t=n\|\mathbf x\|^2=s+t=n, and only crossing edges contribute. If their total weight is c(S,T)c(S,T), the quotient is

RL(x)=c(S,T)(1s+1t).R_L(\mathbf x)=c(S,T)\left(\frac1s+\frac1t\right).

This is the two-way RatioCut objective. Dropping the requirement that coordinates take these two values leaves exactly the Rayleigh minimization above. Thus λ2\lambda_2 is a lower bound on the discrete objective, and a Fiedler vector solves this particular continuous relaxation. A rounding step need not recover the optimal discrete cut.

Normalized Laplacians account for degree

The combinatorial form weights high-degree vertices more heavily. When every degree is positive, define

Lsym=I−D−1/2AD−1/2,Lrw=I−D−1A.L_{\mathrm{sym}}=I-D^{-1/2}AD^{-1/2}, \qquad L_{\mathrm{rw}}=I-D^{-1}A.

LrwL_{\mathrm{rw}} connects to a random-walk transition matrix, while LsymL_{\mathrm{sym}} is symmetric and supports the spectral theorem. Isolated vertices make D−1D^{-1} undefined and require an explicit convention or separate treatment.

Since Lsym=D−1/2LD−1/2L_{\mathrm{sym}}=D^{-1/2}LD^{-1/2}, it is positive semidefinite by substituting D−1/2xD^{-1/2}\mathbf x in the energy formula. Moreover

D1/2LrwD−1/2=Lsym,D^{1/2}L_{\mathrm{rw}}D^{-1/2}=L_{\mathrm{sym}},

so these normalized Laplacians are similar and share their real nonnegative eigenvalues. This similarity uses positive degrees.

Reconcile row and column probability conventions

D−1AD^{-1}A is row stochastic: it records transitions from starting vertices and acts on vertex functions. For the column probability states used earlier, instead use

P=AD−1,pn+1=Ppn.P=AD^{-1},\qquad \mathbf p_{n+1}=P\mathbf p_n.

The two matrices are transposes. Left-multiplying a column probability vector by the row-stochastic matrix need not preserve total mass. In an undirected graph, normalized degrees form a stationary column distribution; a bipartite graph without self-loops can still produce periodic oscillation.

Indeed, with sd=∑idi>0s_d=\sum_i d_i>0 and π=d/sd\boldsymbol\pi=\mathbf d/s_d, we have AD−1π=A1/sd=d/sdAD^{-1}\boldsymbol\pi=A\mathbf1/s_d=\mathbf d/s_d. Column sums of AD−1AD^{-1} are one. On a bipartite graph, each step moves all mass to the opposite side, so starting on one side makes its total mass alternate between zero and one, proving possible nonconvergence.

From diffusion to spectral clustering

Continuous diffusion on a graph is

x′(t)=−Lx(t),x(t)=e−tLx(0).\mathbf x'(t)=-L\mathbf x(t), \qquad \mathbf x(t)=e^{-tL}\mathbf x(0).

High-eigenvalue modes decay quickly while constant modes remain. Spectral clustering maps vertices into coordinates given by several low-eigenvalue eigenvectors, then clusters those coordinates. It solves a continuous relaxation; a separate rounding or clustering step still produces discrete groups.

Directed graphs, signed weights, and hypergraphs require different Laplacian choices. The conclusions here do not transfer without checking their assumptions.

In an orthonormal eigenbasis the solution is ∑ie−tλi(qiTx(0))qi\sum_i e^{-t\lambda_i}(\mathbf q_i^{\mathsf T}\mathbf x(0))\mathbf q_i. All positive modes vanish as t→∞t\to\infty. For a connected graph the remaining term is 11Tx(0)/n\mathbf1\mathbf1^{\mathsf T}\mathbf x(0)/n, the initial average at every vertex. For several components, projection onto each normalized component indicator gives its own initial average. Total signal is conserved because (1Tx)′=−1TLx=0(\mathbf1^{\mathsf T}\mathbf x)'=-\mathbf1^{\mathsf T}L\mathbf x=0. This is diffusion for the combinatorial Laplacian; the degree-weighted random walk has a different stationary normalization.

Compute a three-vertex path

Use unit edges 1 ⁣−!21\!-!2 and 2 ⁣−!32\!-!3. Then

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

Direct multiplication shows that (1,1,1)(1,1,1), (1,0,−1)(1,0,-1), and (1,−2,1)(1,-2,1) have eigenvalues 0,1,30,1,3. The second mode varies slowly between the endpoints; the third separates the middle vertex from both endpoints and has higher energy. Diffusion multiplies these modes by 1,e−t,e−3t1,e^{-t},e^{-3t} respectively.

Exercises

ExerciseA two-vertex graph

Find LL and its eigenvalues for two vertices joined by one unit-weight edge.

Solution

L=(1−1−11)L=\begin{pmatrix}1&-1\\-1&1\end{pmatrix} has eigenvalues 00 and 22, for the constant and difference directions.

ExerciseComponents and the nullspace

A graph has two disconnected components. Construct two independent vectors in ker⁡L\ker L.

Solution

Use the indicator vector of each component. Each is constant along every edge and the two supports are disjoint.

ExerciseOrientation does not change the Laplacian

Explain why multiplying one column of BB by −1-1 leaves BBTBB^{\mathsf T} unchanged.

Solution

That column contributes bbT\mathbf b\mathbf b^{\mathsf T}. Replacing it by −b-\mathbf b produces the same outer product.