Tutorials › Graph Theory (Undergraduate) › Perron Vectors in Explicit Graphs

Spectra of Graphs · Tutorial 650 of 799

Perron Vectors in Explicit Graphs

Learn to find and verify the positive adjacency eigenvector and spectral radius for four fundamental families of graphs.

Advanced 9 min read

What You'll Learn

  • Use a strictly positive adjacency eigenvector to identify the spectral radius.
  • Derive the positive eigenvector and spectral radius of a path.
  • Verify the constant positive eigenvector for cycles and complete graphs.
  • Compute the spectral radius of a hypercube from its degree.
  • Check formulas directly on explicitly listed small graphs.
  • Avoid confusing maximum degree with spectral radius.

Positive Eigenvectors and Spectral Radius

For a connected graph, the adjacency matrix records which vertices are joined, and its largest eigenvalue measures a form of overall adjacency. In several basic graph families, a positive eigenvector can be written down explicitly. For paths its entries vary with position; for cycles, complete graphs and hypercubes, a constant vector suffices. We will compute these vectors and use them to determine the spectral radius.

Throughout, graphs are finite and simple. The adjacency matrix \(\mathbf{A}(G)\) has entry \(1\) in positions \(u,v\) when \(uv\in E(G)\), and entry \(0\) otherwise. An eigenvector is positive if all its entries are strictly greater than zero. The spectral radius \(\rho(G)\) is the maximum of the absolute values of the eigenvalues of \(\mathbf{A}(G)\). Multiplying an eigenvector by any positive constant gives another positive eigenvector for the same eigenvalue.

Lemma: Let \(A\) be a square matrix with nonnegative entries. If \(x\) is a positive vector and \(Ax=\lambda x\), then \(\lambda=\rho(A)\), the spectral radius of \(A\).

Proof. Since \(A\) has nonnegative entries and \(x\) has positive entries, each coordinate of \(Ax\) is nonnegative. From \(Ax=\lambda x\), it follows that \(\lambda\ge 0\). Let \(\mu\) be any eigenvalue of \(A\), and let \(y\ne 0\) be a corresponding possibly complex eigenvector. Choose an index \(i\) for which \(|y_i|/x_i\) is largest, and write \(M=|y_i|/x_i\). Since \(y\ne0\), \(M>0\), so \(|y_i|>0\). Using \(Ay=\mu y\), nonnegativity of \(A\), and \(|y_j|\le Mx_j\) for every \(j\), we obtain \[ |\mu||y_i| =\left|\sum_j A_{ij}y_j\right| \le \sum_j A_{ij}|y_j| \le M\sum_j A_{ij}x_j =M\lambda x_i =\lambda|y_i|. \] Dividing by \(|y_i|>0\) gives \(|\mu|\le\lambda\). This holds for every eigenvalue \(\mu\), while \(\lambda\) itself is an eigenvalue. Thus \(\rho(A)=\lambda\). \(\square\)

Applied to an adjacency matrix, the lemma means that once we exhibit a positive vector \(x\) satisfying \(\mathbf{A}(G)x=\lambda x\), we have also identified the spectral radius. This gives a direct way to verify the spectral-radius claims below without needing to calculate every eigenvalue.

Paths: A Sine-Shaped Positive Eigenvector

Theorem: For the path \(P_n\) on \(n\ge1\) vertices, label the vertices \(1,\ldots,n\) in path order and set \(\theta=\pi/(n+1)\). The vector with entries \(x_j=\sin(j\theta)\) is positive and satisfies \[ \mathbf{A}(P_n)x=2\cos(\theta)x. \] Consequently, \(\rho(P_n)=2\cos(\pi/(n+1))\).

Proof. The path has edges \(j(j+1)\) for \(1\le j<n\). Set \(x_0=0\) and \(x_{n+1}=0\); these values agree with the sine formula because \(\sin(0)=0\) and \(\sin((n+1)\theta)=\sin(\pi)=0\). For each vertex \(j\), the \(j\)th coordinate of \(\mathbf{A}(P_n)x\) is the sum of the entries at its neighbors, which is \(x_{j-1}+x_{j+1}\), including at the endpoints under these boundary conventions. The sine addition identity gives \[ x_{j-1}+x_{j+1} =\sin((j-1)\theta)+\sin((j+1)\theta) =2\cos(\theta)\sin(j\theta) =2\cos(\theta)x_j. \] For \(1\le j\le n\), we have \(0<j\theta<\pi\), so \(x_j>0\). The lemma now gives \(\rho(P_n)=2\cos(\theta)\). This also covers \(n=1\): then \(\theta=\pi/2\), the vector is \((1)\), and the eigenvalue and spectral radius are both \(0\). \(\square\)

Worked Example: The Three-Vertex Path

Let \(G=(V,E)\) have \(V=\{1,2,3\}\) and \(E=\{12,23\}\). This is \(P_3\). Here \(\theta=\pi/(3+1)=\pi/4\), so the formula gives \[ 2\cos(\theta)=2\cos(\pi/4)=2\left(\frac{\sqrt2}{2}\right)=\sqrt2. \] The sine vector has entries \(x_1=\sin(\pi/4)=\sqrt2/2\), \(x_2=\sin(\pi/2)=1\), and \(x_3=\sin(3\pi/4)=\sqrt2/2\). Scaling by \(\sqrt2\) gives the positive vector \(x=(1,\sqrt2,1)\).

Check the eigenvector equation at each vertex. Vertex \(1\) has neighbor \(2\), so its coordinate in \(\mathbf{A}(G)x\) is \(\sqrt2=\sqrt2\cdot1\). Vertex \(2\) has neighbors \(1\) and \(3\), so its coordinate is \(1+1=2=\sqrt2\cdot\sqrt2\). Vertex \(3\) has neighbor \(2\), so its coordinate is \(\sqrt2=\sqrt2\cdot1\). Thus \(\mathbf{A}(G)x=\sqrt2x\); since \(x\) is positive, the lemma confirms \(\rho(G)=\sqrt2\).

Check: The adjacency matrix is \[ \begin{pmatrix}0&1&0\\1&0&1\\0&1&0\end{pmatrix}. \] Multiplying it by \((1,\sqrt2,1)^{\mathsf T}\) gives \((\sqrt2,2,\sqrt2)^{\mathsf T}=\sqrt2(1,\sqrt2,1)^{\mathsf T}\), as required.

Cycles, Complete Graphs and Hypercubes

For these families, every vertex has the same degree. If \(G\) is \(r\)-regular, then each row of \(\mathbf{A}(G)\) has exactly \(r\) entries equal to \(1\). Therefore the all-ones vector \(\mathbf{1}\) satisfies \(\mathbf{A}(G)\mathbf{1}=r\mathbf{1}\). It is positive, so the lemma proves \(\rho(G)=r\). This argument includes a graph with one vertex and no edges: its degree and spectral radius are both \(0\).

Result: For \(n\ge3\), the cycle \(C_n\) has positive eigenvector \(\mathbf{1}\) and spectral radius \(2\). For \(n\ge1\), the complete graph \(K_n\) has positive eigenvector \(\mathbf{1}\) and spectral radius \(n-1\).

Each vertex of a cycle has two neighbors, giving the cycle result. In \(K_n\), each vertex is adjacent to the other \(n-1\) vertices, giving the complete-graph result. For \(K_1\), the vector has one positive entry and its image under the zero adjacency matrix is zero, so the stated formula remains valid.

The \(d\)-dimensional hypercube \(Q_d\), for \(d\ge0\), has as vertices all binary strings of length \(d\); two strings are adjacent exactly when they differ in one coordinate. For \(d=0\), there is one empty string and no edges. For any \(d\), each vertex has exactly \(d\) neighbors, one for each coordinate that can be changed. Hence \[ \mathbf{A}(Q_d)\mathbf{1}=d\mathbf{1}, \qquad \rho(Q_d)=d. \] The constant vector is positive even in the \(d=0\) case, where the eigenvalue is zero.

Worked Example: A Four-Cycle

Let \(G=(V,E)\) have \(V=\{1,2,3,4\}\) and \(E=\{12,23,34,41\}\). Every vertex has degree \(2\). Take \(x=(1,1,1,1)\). At vertex \(1\), the neighbor entries sum to \(x_2+x_4=1+1=2\); at vertex \(2\), they sum to \(x_1+x_3=1+1=2\); at vertex \(3\), they sum to \(x_2+x_4=1+1=2\); and at vertex \(4\), they sum to \(x_1+x_3=1+1=2\). Thus \(\mathbf{A}(G)x=2x\), and positivity gives \(\rho(G)=2\).

Check: The listed edges give degree \(2\) at each of the four vertices, so the sum of the degrees is \(4\cdot2=8\). Each of the four edges contributes \(2\) to this sum, giving \(2\cdot4=8\), in agreement with the edge list and the eigenvector calculation.

Worked Example: The Complete Graph \(K_4\)

Let \(G=(V,E)\) have \(V=\{1,2,3,4\}\) and \(E=\{12,13,14,23,24,34\}\). Each vertex is adjacent to the other three, so each degree is \(3\). For \(x=(1,1,1,1)\), the neighbor entries at vertex \(1\) sum to \(x_2+x_3+x_4=1+1+1=3\). At vertex \(2\) they sum to \(x_1+x_3+x_4=1+1+1=3\); at vertex \(3\) they sum to \(x_1+x_2+x_4=1+1+1=3\); and at vertex \(4\) they sum to \(x_1+x_2+x_3=1+1+1=3\). Hence \(\mathbf{A}(G)x=3x\), and \(\rho(G)=3\).

Check: The edge list contains \(3+2+1=6\) edges, and the degrees sum to \(4\cdot3=12=2\cdot6\). This independently confirms that the graph has the stated complete-graph adjacency pattern.

Worked Example: The Three-Dimensional Hypercube

Let \(G=Q_3\), with \(V=\{000,001,010,011,100,101,110,111\}\) and \(E=\{000\!-\!001,000\!-\!010,000\!-\!100,001\!-\!011,001\!-\!101,010\!-\!011,010\!-\!110,011\!-\!111,100\!-\!101,100\!-\!110,101\!-\!111,110\!-\!111\}\). Each listed edge joins strings differing in exactly one coordinate. The neighbors of \(000\) are \(001,010,100\); those of \(001\) are \(000,011,101\); those of \(010\) are \(000,011,110\); and those of \(011\) are \(001,010,111\). The neighbors of \(100\) are \(000,101,110\); those of \(101\) are \(001,100,111\); those of \(110\) are \(010,100,111\); and those of \(111\) are \(011,101,110\). Thus every vertex has three neighbors.

For the all-ones vector \(x\in\mathbb{R}^8\), each coordinate of \(\mathbf{A}(G)x\) is \(1+1+1=3\). Therefore \(\mathbf{A}(G)x=3x\), and \(\rho(G)=3\). As a count check, the edge list has twelve entries, and the degree sum is \(8\cdot3=24=2\cdot12\).

How to Use the Formulas

The formulas give a quick choice of positive eigenvector once the graph family is recognized. For \(P_n\), the coordinate at vertex \(j\) depends on its position and is \(\sin(j\pi/(n+1))\), up to positive scaling. For \(C_n\), \(K_n\), and \(Q_d\), every vertex has the same degree, so the all-ones vector works. The resulting spectral radii are summarized here.

GraphPositive eigenvectorSpectral radius
\(P_n\), \(n\ge1\)\(x_j=\sin(j\pi/(n+1))\)\(2\cos(\pi/(n+1))\)
\(C_n\), \(n\ge3\)\(\mathbf{1}\)\(2\)
\(K_n\), \(n\ge1\)\(\mathbf{1}\)\(n-1\)
\(Q_d\), \(d\ge0\)\(\mathbf{1}\)\(d\)

These computations illustrate why a positive eigenvector is useful: it identifies the spectral radius, not merely some eigenvalue. A vector with entries of mixed sign may still be an eigenvector, but the lemma does not apply to it. Positivity is the key condition in this method.

Common Pitfall: Maximum Degree Is Not Always the Spectral Radius

For a regular graph, the degree equals the spectral radius because the all-ones vector is a positive eigenvector. It is not valid to assume the same equality for every graph. For example, in the explicitly listed \(P_3\) above, the maximum degree is \(2\), but the calculation gives \(\rho(P_3)=\sqrt2\). The mistaken calculation “\(\rho(P_3)=\Delta(P_3)=2\)” confuses a degree bound with an equality. The path vector verifies the correction directly: \(\mathbf{A}(P_3)(1,\sqrt2,1)^{\mathsf T}=(\sqrt2,2,\sqrt2)^{\mathsf T}=\sqrt2(1,\sqrt2,1)^{\mathsf T}\), and the positive-eigenvector lemma establishes that \(\sqrt2\), not \(2\), is the spectral radius.

Check Your Understanding

For each question, identify the graph and use either its positive eigenvector or a direct adjacency calculation to justify your answer.

  1. For \(P_4\), write the four entries of the positive sine eigenvector and state its spectral radius.
  2. Let \(G\) have \(V=\{a,b,c\}\) and \(E=\{ab,bc,ca\}\). Verify the all-ones eigenvector and find \(\rho(G)\).
  3. Explain why the positive-eigenvector lemma applies to \(K_1\), even though its spectral radius is zero.
  4. List the degree and spectral radius of \(Q_4\), and explain why the constant vector gives the spectral radius.
  5. Give a reason that the maximum degree alone does not determine the spectral radius of \(P_3\).