A table of observations does not always arrive with a meaningful coordinate for every feature. We may instead know which pairs interact and how strong those interactions are. A graph records that information. To build coordinates from it, we need to specify what a coordinate should accomplish: adjacent vertices should have small coordinate differences, while the complete configuration must not collapse to a point.
This original supplementary note derives that construction for finite, undirected, nonnegatively weighted graphs. Its mathematical preparation is finite sums, real inner products, orthogonal projection and elementary differentiation. We also use finite-dimensional compactness: closed bounded subsets of real Euclidean space are compact, and a continuous real function on a nonempty compact set attains its maximum and minimum. The PCA note already develops SVD and projection-based optimization. We reuse its projection-weight method, and prove the finite real spectral theorem needed here. The MDS note explains a different problem: reconstructing a supplied distance table. Here a path is a finite sequence of distinct vertices with positive-weight edges between consecutive vertices; the length-zero path joins a vertex to itself. Two vertices are connected if a path joins them, and the resulting equivalence classes are the connected components. For transitivity, concatenate two paths to obtain a walk, then delete portions between repeated occurrences of a vertex. Each deletion shortens the walk while preserving endpoints, so after finitely many deletions it is a path.
We will keep three distinctions visible. A symmetric affinity matrix need not be a positive semidefinite kernel. A stationary random-walk law need not be a limiting law. A continuous spectral relaxation need not solve its discrete cut problem exactly.
1. Weighted edges and an energy for vertex functions
Let the vertex set be , initially with . Its weight matrix satisfies
Weights may be arbitrary nonnegative real numbers; they need not be probabilities, integers or bounded by one. The support graph has the undirected edge exactly when . All statements about components refer to this graph. A pair assigned weight zero does not provide a connection, even if someone includes it in a drawing.
The weighted degree, degree matrix and unnormalized Laplacian are
Nonnegativity implies that exactly when every weight in row is zero. Such a vertex is isolated. A vertex function is a real column . Its value can represent a proposed coordinate, a temperature or any scalar signal. Matrix multiplication gives
Thus , where is the all-one column. Adding a constant to a signal does not alter its edge differences.
Energy identity. For every ,
Proof. Expand the double sum. Its two square terms give ; symmetry is needed to identify the second degree sum. The cross term is . Their difference is . Each unordered pair appears twice in the double sum, and the diagonal terms vanish, proving the last equality. All sums are finite. ∎
Consequently is symmetric positive semidefinite. Its energy penalizes differences across strong edges more heavily. No covariance interpretation or assumption that itself is positive semidefinite was used. For example,
has eigenvalues , while its Laplacian has eigenvalues . This graph affinity is not a positive semidefinite Gram matrix. Conversely the Gram matrix of the two real vectors is , which is positive semidefinite because its quadratic form is , but has negative off-diagonal entries. Thus it does not satisfy our graph hypothesis.
Kernel and components. A function belongs to exactly when it is constant on each support component. Hence, if there are components,
Proof. If , then . Every summand in the energy is nonnegative, so every positive-weight edge has equal endpoint values. Equality propagates along a path, making constant on a component. Conversely, a componentwise constant function makes every term in zero: a positive edge stays in one component and a zero weight contributes nothing. The component indicator columns form an independent spanning set for these functions, because their supports are disjoint and every component is nonempty. An isolated vertex contributes its own indicator just as any other component does. Rank-nullity gives the rank formula. ∎
The sign hypothesis matters. Giving the sole edge of a two-vertex graph weight would yield energy , which is negative for a nonconstant function. Directed or signed matrices require different statements and are outside this note.
2. The finite real spectral bridge and the second eigenvalue
The PCA construction uses an orthonormal eigenbasis of a real symmetric matrix. Here is the finite-dimensional proof, so the graph argument has no hidden spectral dependency.
Real symmetric spectral theorem. Every real symmetric matrix admits an orthonormal basis of real eigenvectors.
Proof. In dimension zero the empty basis suffices. In dimension , the continuous function attains a maximum on the compact unit sphere. Choose a maximizing unit column . For every real column with , the curve
has unit norm for every real . Differentiation at zero is valid, and the derivative of its quadratic form is
Therefore is orthogonal to every column in . The orthogonal decomposition into and shows that for a real scalar . If , symmetry gives . Hence is invariant, and the restriction of to it is again real symmetric. Apply the induction hypothesis in dimension and adjoin . The resulting eigenvectors form the required orthonormal basis. ∎
For a positive semidefinite matrix, every eigenvalue is nonnegative, since with implies .
Apply this to . Its known zero-eigenvalue direction lets us choose the first eigenvector before making any other choice:
The space is invariant because . Apply the theorem to that restriction, order its eigenvalues increasingly, and obtain
This ordering permits several zero eigenvalues. Choosing constant does not imply that the graph is connected.
For , the second eigenvalue has the precise optimization formula
Proof. Write a centered unit function as . Then and . Choosing attains the bound. Equality occurs exactly when all coefficients corresponding to eigenvalues greater than vanish. Thus the minimizing functions are all unit vectors in the eigenspace inside , not a uniquely oriented column. ∎
In particular, exactly when the support graph is connected. If connected, the kernel is only , so every eigenvalue in its complement is positive. If disconnected, there is a nonzero centered componentwise constant function, so the minimum is zero. This is an exact connection between an algebraic spectrum and a combinatorial property.
For one vertex, and there is no second eigenvalue or centered unit function. The zero matrix on two or more vertices has many components and . An empty vertex set may also be allowed as a separate convention: its matrices are empty and its kernel has dimension zero, but it has no second eigenvalue. No optimization over a nonexistent unit vector is intended in these cases.
3. Normalization without dividing by isolated degrees
Weighted degrees may differ greatly. Normalization measures an edge difference relative to the degrees at its endpoints, but it must first address degree zero.
Let
There are no edges incident to . Restrict to , writing for the corresponding matrices. If is nonempty, is positive definite and we define
Our full-space normalized Laplacian is on and zero on every isolated coordinate. Equivalently, let be diagonal with entry on and zero on ; then
When isolates exist, this is not : that different formula assigns the value one to an isolated diagonal entry. Either convention must be stated before interpreting zero modes. We use the zero extension throughout. If is empty, ; no inverse of a degree matrix is formed.
For an active column , put . The energy identity proves
It follows that is positive semidefinite. Its kernel consists of columns whose entries are a common constant times on each active support component. The converse follows either by the coordinate equation or by when is componentwise constant. Thus each active component contributes the column restricted to that component. Under zero extension, each isolated column supplies one more kernel vector. The full normalized and unnormalized kernels have equal dimension, although their vectors on active components are scaled differently.
The spectrum of lies in . Indeed, on active coordinates the inequality gives
Each edge contributes to the degree sums of its two endpoints, so there is no extra factor of two. Apply this bound to a unit eigenvector; every active eigenvalue lies between zero and two. The isolated zero eigenvalues satisfy the same bound. A single positive edge on two vertices has normalized matrix , whose eigenvalues attain both endpoints.
Normalization is a change of metric, not permission to invert zero degrees. The weighted form is an inner product on active coordinates, but on the full space it vanishes on an isolated column and is only semidefinite.
4. A reversible walk need not converge
On the active set only, define
Its entries are nonnegative and every row sums to one. It is therefore a row-stochastic transition matrix: is the probability of moving from to in one step. For a vertex function , is its expected value after one step started at . In contrast, a probability column evolves by
This transpose matters. Multiplying a column distribution by uses a different convention and need not preserve its total mass.
In the rest of this section all matrices and columns are restricted to . Symmetry of gives the exact identities
Consequently is self-adjoint for : . It need not be symmetric in the ordinary Euclidean inner product. The direct similarity calculation is
Thus, if , then satisfies . An orthonormal eigenbasis for becomes a -orthonormal eigenbasis for . In particular its eigenvalues are real and lie in , without invoking a separate stochastic spectral theorem.
For nonempty the total degree is positive. Define the probability column
For every active , finite summation gives
Therefore is stationary. Moreover , the detailed balance identity. On a disconnected active graph, normalizing the degrees separately on any one component gives a stationary law supported there; convex mixtures of these laws are also stationary. We do not assert uniqueness without further work.
Stationarity is not convergence. With two vertices and one positive edge,
The law stays fixed, but a walk started at vertex one is at vertex one at every even time and vertex two at every odd time. Its laws never converge. Algebraically the eigenvalue retains an alternating component; the corresponding normalized eigenvalue is . The existence of a stationary vector therefore cannot justify a mixing claim. We make no general convergence-rate assertion here.
If all degrees are zero, the active set is empty and there is no active walk or degree-normalized probability law. One could separately choose absorbing transitions at isolated vertices, but that is extra model data, not a value produced by dividing zero by zero.
5. What spectral coordinates actually minimize
A constant coordinate has zero energy, and setting every coordinate to zero would make every vertex coincide. To prevent these collapses, prescribe centered orthonormal coordinate columns.
For an integer , choose such that
The coordinate of vertex is row . Applying the scalar energy identity to each column and summing proves
This objective is total squared variation across weighted edges. It is not the error in a supplied pairwise-distance table.
Minimum-trace principle. With the eigenvalues ordered as in section2,
For the matrix has no columns and both sides are zero. For an attaining choice is .
Proof. Work inside , whose orthonormal eigenbasis is . Put
Because is orthogonal projection onto the column space of , we have . Expanding each unit column of in this basis and summing its squared coefficients gives . Also spectral expansion gives .
Let . The mass identity just proved gives the exact difference
Every displayed coefficient is nonnegative. Taking the first eigenvectors inside the centered space attains equality, proving the minimum. This is the projection-weight argument used for PCA, with the eigenvalue order reversed because we minimize variation instead of maximizing variance. ∎
For , the difference identity also gives the precise equality conditions. Inside , the retained column space must contain every eigenspace with eigenvalue below and be orthogonal to every eigenspace with eigenvalue above . In the eigenspace for , it may choose any remaining dimensions needed to reach . To justify these statements, means that projection preserves the whole norm of , so belongs to the column space; means it is orthogonal to that space. The zero coefficients at the cutoff leave exactly the stated freedom. The already excluded constant direction is never required to be included, even when .
If and , the retained subspace is fixed. For , the retained subspace is the entire centered space and is also fixed. Neither case fixes an oriented basis. If two feasible matrices span the same subspace, define . Since projection onto that subspace is both and ,
The square matrix is orthogonal. Therefore row distances are unchanged by , and . However, a repeated eigenvalue straddling the truncation boundary can permit genuinely different retained subspaces. Their row distances need not agree; Question2 computes this explicitly.
For a disconnected graph, some centered component-indicator combinations have zero energy. The theorem still holds and may place components separately without charging for an absent connecting edge. It does not identify a unique clustering. For one vertex only is allowed. The empty graph also admits an empty zero-column configuration as a separate endpoint, with no nonzero-dimensional embedding claim.
Compare the objectives. PCA starts with feature observations and retains directions of greatest variance. Classical MDS starts with distances and seeks a centered Gram realization. Here the supplied edge weights define smoothness, and the coordinates retain directions of least nonconstant graph energy. These constructions can use eigenvectors without solving the same problem. In particular no PCA explained-variance percentage, MDS distance-preservation theorem or inverse-square-root eigenvalue scaling is asserted for the orthonormal graph coordinates above.
6. Normalized cut is an exact indicator quotient and a relaxation
Now assume the support graph is connected and . Every degree is then positive. For a nonempty proper subset , put and define
Volume counts an internal edge twice and a crossing edge once:
This follows by separating each degree sum into neighbors inside and outside . It is not the number of edges merely incident to . Write , . The normalized-cut value is
There is an exact quadratic-form representation. Define the two-level function
Its degree-weighted mean and norm are
Only crossing edges contribute to its energy, so
Dividing the energy by the positive squared norm proves
To relax the restriction that take exactly these two values, let . Then
where . In a connected graph has exactly the one-dimensional kernel spanned by . Choose its normalized kernel vector first and diagonalize its orthogonal complement, exactly as in section2. If its ordered eigenvalues are , expansion in that orthonormal eigenbasis proves
The minimum over cuts exists because there are finitely many nonempty proper subsets. The inequality holds because each indicator-derived vector is an admissible continuous competitor. The relaxed feasible set has many other vectors, so the inequality need not be equality. Question4 gives a strict gap. A sign or sorted-threshold procedure is an additional rounding choice; no exact-cut or approximation guarantee for such a procedure has been proved here.
On a graph with isolates, a side can have zero volume, making this quotient undefined. The active normalized matrix still exists by section3, but that fact does not assign a value to division by zero. Our normalized-cut theorem deliberately uses connected positive-degree support.
7. Common interpretation errors
A zero eigenvalue records a componentwise constant signal, not a unique informative coordinate. With disconnected support there are several zero modes. An isolated vertex cannot be normalized by its degree, and silently replacing its zero block by a one changes the normalized operator.
Euclidean symmetry of is stronger than the weighted identity . Likewise, detailed balance and a stationary vector do not imply convergence from every start. The two-vertex example keeps all of these distinctions finite and exact.
Finally, coordinate signs are arbitrary, and equal eigenvalues require attention to the retained subspace. Even when the subspace is fixed, its basis may rotate. When a tie crosses a truncation boundary, the subspace itself may vary. Comparing individual plotted axes without checking these choices can misidentify an algebraic ambiguity as a change in the data.
8. Questions and complete solutions
Question 1
On four vertices let , , and all other off-diagonal weights be zero. Compute the degrees, Laplacian, components, kernel and complete unnormalized spectrum. Compute the isolate-safe normalized spectrum and give an orthonormal eigenbasis. Then find the active transition matrix and its degree-stationary law. Explain why neither a uniform active law nor the full matrix gives the asserted conventions.
Solution. Symmetry supplies the reverse weights. The matrices are
There are two components, and . Hence the kernel is spanned by and . To compute the other eigenvalues rather than infer them from a drawing, let denote the upper three-by-three block. Expansion of its tridiagonal determinant gives
The isolated zero block supplies one more factor , so the full spectrum, including multiplicity, is .
On the active set the normalized matrix is
Direct multiplication gives an orthonormal eigenbasis
with eigenvalues respectively. The numerators have squared norms and pairwise zero dot products, which verifies their normalization and independence. Extend these columns by a zero fourth entry and append . This is a full orthonormal eigenbasis for our , with spectrum .
Because , the matrix instead sends to ; it would replace the isolated eigenvalue zero by one. Its active block is the same, but its isolated convention is different.
The transition matrix on vertices and its stationary probability column are
The row is , either by direct multiplication or by the degree identity. In contrast, the uniform row becomes and is not stationary. Notice also but : is not Euclidean symmetric. Its correct symmetry is . The isolated fourth transition row is not defined by this active construction, so neither a four-vertex degree inverse nor a probability mass assigned by such an inverse is used.
Question 2
For the unweighted complete graph on three vertices, solve the one- and two-coordinate minimum-trace problems. Compare the one-coordinate choices
Compute their three pairwise squared coordinate distances, and determine whether all minimizing coordinates have the same distances. When the entire two-dimensional centered space is retained, prove that any two orthonormal coordinate matrices differ by an orthogonal change of coordinates and compute their pairwise squared row distances.
Solution. Every vertex has degree two, and the adjacency matrix is , where . Therefore . The constant column has eigenvalue zero; every centered column satisfies and . The spectrum is . Both displayed columns are centered unit columns, so every one-coordinate objective equals three and these are minimizers.
For , the squared distances in pair order are
For they are
Thus the distance triples differ. A one-dimensional orthogonal change can only multiply every coordinate by or , preserving all distances, so these two minimizers are not related in that way. The repeated eigenvalue permits different one-dimensional subspaces inside the two-dimensional centered eigenspace.
For , every feasible column space is the entire , and the minimum is . Its orthogonal projector is . If are any two feasible matrices, let . Then , and . Hence is an actual orthogonal matrix relating the two coordinates. Their Gram matrix is . For distinct the squared row distance is
Here retaining the whole repeated eigenspace fixes the subspace and all distances. Truncating through it did not. The statements concern the explicit graph-energy constraints; they do not impose a separately supplied MDS distance table.
Question 3
Two vertices are joined by one edge of weight . Derive the active transition matrix, stationary law and normalized eigenvalues. Starting from a point mass, compute the law at every time and decide whether it converges. Explain separately why the non-symmetry of the weighted path transition matrix in Question1 does not contradict reversibility. What, if anything, does the degree formula define for an all-zero graph?
Solution. Here and , so
The columns and have normalized eigenvalues . The corresponding transition eigenvalues are . Since , induction gives and for every integer . Starting from the probability column , and noting in this particular example, we obtain and . The first coordinate has subsequences equal to one and zero, so no limit exists. The stationary column still satisfies ; averaging these two starting states with equal weights removes the alternating component.
For the path in Question1, and direct multiplication gives
This is self-adjointness in a different positive inner product, not ordinary matrix symmetry. Detailed balance uses , so unequal one-step probabilities are balanced by unequal stationary masses. A probability column evolves by ; the action instead takes conditional expectations of a function. These happen to coincide as matrices for the two-vertex example, but not for the weighted path.
If every weight is zero, all degrees and the total volume are zero and the active set is empty. The zero-extended normalized Laplacian is the zero matrix, but neither nor is a defined full-space formula. The zero column would not be a probability law because its entries sum to zero. Assigning absorbing isolated states would be an additional transition convention, not a conclusion of our construction.
Question 4
For the unweighted path , compute the normalized spectrum and verify that
is a generalized eigenfunction with . Compute all normalized-cut values up to interchange of the two sides. Compare the exact optimum with the spectral relaxation, and evaluate the two-level indicator quotient for the central cut.
Solution. The degree matrix and Laplacian are
The four columns
satisfy , as entrywise multiplication verifies. For example . Their degree-weighted squared norms are respectively. Multiplication by and division by those positive norm square roots gives unit eigenvectors for . Their distinct eigenvalues make them orthogonal: for a symmetric , the two expressions for imply . Thus they give four independent eigenvectors, exhausting dimension four. The normalized spectrum is exactly .
The proposed is , with weighted mean and squared weighted norm three. Its Rayleigh quotient is , proving the relaxed minimum is attained.
There are seven unordered nontrivial cuts, because exactly one side contains vertex one. Use that side as ; the total volume is six. Each crossing path edge has weight one, so direct enumeration gives
| 1 | 1 | 5 | ||
| 2 | 2 | 4 | ||
| 3 | 3 | 3 | ||
| 2 | 4 | 2 | ||
| 1 | 3 | 3 | ||
| 2 | 4 | 2 | ||
| 1 | 5 | 1 |
The smallest discrete value is , attained by . For this cut the two-level function is . Only the central edge contributes to its energy, giving , while . Their ratio is , confirming the indicator formula directly.
We have the strict inequality
The relaxed minimizer takes four different values, while the cut function takes only two. A sign threshold happens to recover the optimal central cut in this example. That observation does not remove the strict objective gap or prove a general guarantee for threshold rounding.