Tutorials › Graph Theory (Undergraduate) › Jordan Centers of Trees

Rooted Trees, Distance and Centers · Tutorial 156 of 799

Jordan Centers of Trees

Use repeated simultaneous deletion of leaves to find a tree’s Jordan center, and prove that it consists of one vertex or two adjacent vertices.

Intermediate 9 min read

What You'll Learn

  • Define the eccentricity and Jordan center of a tree
  • Prune all current leaves simultaneously, stopping when one or two vertices remain
  • Prove that pruning preserves the center of the original tree
  • Explain why the final vertices are adjacent and are the only possible centers
  • Trace pruning rounds on explicit trees and check the answers using distances
  • Recognize why deleting leaves one at a time can give a wrong answer

Finding the Center by Pruning Leaves

In a tree, the most central vertex or vertices are those whose farthest vertex is as close as possible. This definition uses distances throughout the tree, but a simple procedure finds the answer without calculating every distance: repeatedly delete all leaves at once. The process stops at one vertex or at two adjacent vertices. We will prove that these remaining vertices are exactly the center of the original tree.

All graphs here are finite and simple. A tree is a connected graph with no cycles. A leaf is a vertex of degree \(1\). For a tree \(T\) and vertices \(u,v\), \(d(u,v)\) denotes the length of a shortest \(u\)-\(v\) path. The eccentricity of \(v\) is the greatest distance from \(v\) to any vertex of \(T\).

$$ \operatorname{ecc}_T(v)=\max_{u\in V(T)} d(u,v). $$
Definition: The Jordan center of a tree \(T\) is the set of vertices whose eccentricity is minimum among all vertices of \(T\). The minimum eccentricity is the radius of \(T\). A center is a vertex, or one of the vertices, attaining this minimum.

A single-vertex tree has eccentricity \(0\) at its only vertex, so that vertex is its center. In the pruning procedure, stop as soon as one or two vertices remain; in particular, do not delete both vertices of a two-vertex tree. When there are at least three vertices, delete all leaves simultaneously, and repeat on the remaining induced subgraph.

Why One Pruning Round Preserves the Center

Lemma: Let \(T\) be a tree with at least three vertices, and let \(T'\) be the graph obtained by deleting all leaves of \(T\). Then \(T'\) is a nonempty tree. Every vertex \(v\) of \(T'\) satisfies \[ \operatorname{ecc}_T(v)=\operatorname{ecc}_{T'}(v)+1, \] and no deleted leaf is a center of \(T\).

Proof. First, \(T\) has a vertex of degree at least \(2\). Otherwise every vertex would have degree at most \(1\); in a connected graph with these degree bounds, there can be at most two vertices. Thus at least one vertex is not a leaf, and \(T'\) is nonempty. To see that \(T'\) is connected, take any two of its vertices and consider the path between them in \(T\). Every internal vertex on that path has at least two neighbors on the path, so it is not a leaf. The whole path remains in \(T'\). Since deleting vertices cannot create a cycle, \(T'\) is a tree.

Now fix \(v\in V(T')\). A vertex farthest from \(v\) in \(T\) must be a leaf: if a farthest vertex were not a leaf, the unique path from \(v\) to it could be extended by an edge away from \(v\), giving a more distant vertex. Let \(x\) be a farthest vertex. It is a deleted leaf, and its neighbor \(y\) is not a leaf: in a connected tree of at least three vertices, the neighbor of a leaf cannot itself have degree \(1\). Hence \(y\in V(T')\) and \(d(v,x)=d(v,y)+1\). This gives \(\operatorname{ecc}_{T'}(v)\geq\operatorname{ecc}_T(v)-1\).

For the reverse inequality, each vertex of \(T\) either survives, or is a deleted leaf \(z\) whose neighbor \(w\) survives. If \(z\) survives, its distance from \(v\) is at most \(\operatorname{ecc}_{T'}(v)\). If \(z\) is deleted, then \(d(v,z)=d(v,w)+1\leq\operatorname{ecc}_{T'}(v)+1\). Taking the maximum over all vertices of \(T\) proves \(\operatorname{ecc}_T(v)\leq\operatorname{ecc}_{T'}(v)+1\), and therefore gives the claimed equality.

Finally, let \(x\) be a deleted leaf and \(y\) its neighbor. In \(T-x\), which is a tree on at least two vertices, set \(M=\max_{z\in V(T)\setminus\{x\}}d(y,z)\). Then \(M\geq1\), \(\operatorname{ecc}_T(y)=M\), and \(\operatorname{ecc}_T(x)=M+1\), since every path from \(x\) to a different vertex starts with \(xy\). Thus \(x\) has larger eccentricity than the surviving vertex \(y\), so \(x\) is not a center. The eccentricities of all surviving vertices decrease by the same amount, \(1\), and no deleted vertex is a center. Consequently the centers of \(T\) are exactly the centers of \(T'\). \(\square\)

The Jordan Center Theorem

Theorem: Every finite tree has either one Jordan center or two Jordan centers joined by an edge. Repeatedly deleting all leaves simultaneously, and stopping when one or two vertices remain, returns exactly the center of the original tree.

Proof. If the tree has one or two vertices, the stated stopping rule returns all its vertices. A one-vertex tree has its only vertex as center. In a two-vertex tree, both vertices have eccentricity \(1\), so both are centers and are adjacent.

Now suppose the tree has at least three vertices. By the lemma, one pruning round leaves a nonempty tree and preserves the center. It also leaves fewer vertices, because at least one leaf is deleted. Repeat the round whenever at least three vertices remain. Since the number of vertices is a positive integer that strictly decreases at each such round, the procedure must stop with one or two vertices. At every round the center set remains unchanged, by the lemma. The final tree has either one vertex, which is its center, or two adjacent vertices, both of which are its centers. Therefore the original tree has exactly the same center set: one vertex or two adjacent vertices, as claimed. \(\square\)

This proof also explains the specific stopping rule. If a two-vertex tree were pruned once more, both vertices would be deleted, even though both are centers. Stopping at two preserves the answer.

Pruning Trees Step by Step

Worked Example: Two Adjacent Centers

Let \(T\) have vertex set \(\{a,b,c,d,e,f,g,h,i\}\) and edge set \(\{ab,bc,cd,de,ef,fg,gh,gi\}\). This is a tree: the edges form a connected branching graph with no cycle. List the leaves at each round and find the center.

StageLeaves deletedVertices remaining
Start\(\{a,h,i\}\)\(\{a,b,c,d,e,f,g,h,i\}\)
Round 1\(\{a,h,i\}\)\(\{b,c,d,e,f,g\}\)
Round 2\(\{b,g\}\)\(\{c,d,e,f\}\)
Round 3\(\{c,f\}\)\(\{d,e\}\)

After round 1 the remaining edges are \(bc,cd,de,ef,fg\), a path on six vertices. After round 2 the remaining edges are \(cd,de,ef\), a path on four vertices. After round 3 the remaining edge is \(de\). The procedure stops with adjacent vertices \(d,e\), so these are the Jordan centers of the original tree.

Check: The path from \(a\) to \(h\) has length \(7\), and the path from \(a\) to \(i\) also has length \(7\). These are longest paths: every vertex lies on the displayed branching structure, and no pair of vertices is farther apart than a leaf-to-leaf path of length \(7\). From \(d\), the distances to \(a,h,i\) are \(3,4,4\), respectively; all other vertices are no farther than \(4\). Thus \(\operatorname{ecc}_T(d)=4\). From \(e\), the distances to \(a,h,i\) are \(4,3,3\), respectively, and all other vertices are no farther than \(4\), so \(\operatorname{ecc}_T(e)=4\). The pruning theorem confirms that these are the only centers.

Worked Example: One Center

Let \(T\) have vertex set \(\{1,2,3,4,5,6,7,8\}\) and edge set \(\{12,23,34,45,56,67,68\}\). Find its Jordan center by simultaneous leaf deletion.

StageLeaves deletedVertices remaining
Start\(\{1,7,8\}\)\(\{1,2,3,4,5,6,7,8\}\)
Round 1\(\{1,7,8\}\)\(\{2,3,4,5,6\}\)
Round 2\(\{2,6\}\)\(\{3,4,5\}\)
Round 3\(\{3,5\}\)\(\{4\}\)

The remaining graph after round 1 is the path \(2,3,4,5,6\); after round 2 it is the path \(3,4,5\). The procedure stops at vertex \(4\), so \(4\) is the unique Jordan center.

Check: The path from \(1\) to \(7\) has length \(6\), as does the path from \(1\) to \(8\). The tree has no longer path: its longest paths run from \(1\) to one of the leaves \(7,8\). From \(4\), the distances to \(1,7,8\) are \(3,3,3\), respectively, so \(\operatorname{ecc}_T(4)=3\). Since the longest path has length \(6\), every vertex \(v\) has at least one of its endpoints at distance at least \(3\): for endpoints \(x,y\), \(d(x,y)\leq d(x,v)+d(v,y)\), so both distances cannot be less than \(3\). Thus no vertex has eccentricity below \(3\), and the pruning theorem shows \(4\) is the only center.

Worked Example: A Star and the Stopping Rule

Let \(T\) have vertex set \(\{m,a,b,c,d\}\) and edge set \(\{ma,mb,mc,md\}\), the star with center \(m\) and four leaves.

StageLeaves deletedVertices remaining
Start\(\{a,b,c,d\}\)\(\{m,a,b,c,d\}\)
Round 1\(\{a,b,c,d\}\)\(\{m\}\)

The procedure stops at \(m\), so \(m\) is the center. Directly, \(d(m,a)=d(m,b)=d(m,c)=d(m,d)=1\), hence \(\operatorname{ecc}_T(m)=1\). Each leaf is distance \(2\) from each of the other three leaves, so each leaf has eccentricity \(2\). Therefore \(m\) is the unique center, in agreement with pruning.

Common Pitfall: Deleting Leaves One at a Time

The proof depends on deleting all leaves in the same round. For example, take the path \(P_4\) with vertex set \(\{a,b,c,d\}\) and edge set \(\{ab,bc,cd\}\). Its leaves are \(a\) and \(d\). Simultaneously deleting them leaves the edge \(bc\), so the two centers are \(b,c\). If instead one deletes \(a\), then \(b\) becomes a leaf in the smaller path \(b,c,d\). Deleting \(b\) next leaves \(c,d\); deleting \(c\) after that leaves \(d\). This one-at-a-time process ends at \(d\), which is not a center of the original path: its eccentricity is \(3\), while \(b\) and \(c\) each have eccentricity \(2\). The mistake is to treat leaves created midway through a round as if they had been leaves at its start.

Another important detail is that a pruning round subtracts \(1\) from the eccentricity of each surviving vertex, not necessarily from every vertex of the original tree. Deleted leaves are not centers; the lemma proves this separately. Together, these facts justify why the surviving center set is unchanged.

Check Your Understanding

For each question, use simultaneous rounds and distinguish the tree at the start of a round from the tree after deletion.

  1. Prune the tree with vertex set \(\{1,2,3,4,5\}\) and edge set \(\{12,23,34,45\}\). Which vertices are its Jordan centers?
  2. Why must the neighbor of a leaf survive a pruning round when the tree has at least three vertices?
  3. In the lemma, why does a vertex farthest from a fixed vertex have to be a leaf?
  4. For a two-vertex tree, what goes wrong if one performs another deletion round rather than stopping?
  5. Give a concrete example showing why deleting leaves one at a time need not return the original tree’s center.