MathLabs
TheoremProved

Equivalent characterizations of a tree

Statement

For a graph TT with nn vertices, the following are equivalent: (i) TT is connected and acyclic; (ii) TT is connected with n−1n-1 edges; (iii) TT is acyclic with n−1n-1 edges.

Why is it true?

Removing any edge from a tree disconnects it, and adding any edge creates a cycle — a tree has exactly the number of edges needed to connect everything, with no redundancy and no shortage. These three conditions each pin down that "just enough" structure from a different angle.

Proof sketch

We show (i) connected and acyclic   ⟹  \implies (ii) connected with n−1n-1 edges   ⟹  \implies (iii) acyclic with n−1n-1 edges   ⟹  \implies (i), which chains all three together.

**(i)  ⟹  \implies(ii)**, by induction on nn. The base case n=1n=1 is immediate: a single vertex has 0=n−10 = n-1 edges. For the inductive step, take a connected acyclic graph TT on n≥2n\ge2 vertices. Since TT is finite and acyclic, it must contain a leaf vv (a vertex of degree 11): otherwise every vertex would have degree ≥2\ge 2, and following edges out of any starting vertex without immediately backtracking would eventually revisit a vertex, producing a cycle. Deleting vv and its one incident edge leaves a graph T′T' on n−1n-1 vertices that is still connected (vv had no other vertices depending on it to stay connected) and still acyclic (a subgraph of an acyclic graph is acyclic). By the inductive hypothesis, T′T' has (n−1)−1(n-1)-1 edges, so TT has (n−1)−1+1=n−1(n-1)-1+1 = n-1 edges.

**(ii)  ⟹  \implies(iii)**. Suppose TT is connected with n−1n-1 edges. If TT had a cycle, deleting one edge of that cycle would keep the graph connected (the two endpoints of the deleted edge are still joined by the rest of the cycle), giving a connected graph on nn vertices with only n−2n-2 edges. But any connected graph on nn vertices needs at least n−1n-1 edges (each new vertex beyond the first needs at least one new edge to reach it), so n−2n-2 edges cannot connect nn vertices — a contradiction. So TT has no cycle, i.e. it is acyclic.

**(iii)  ⟹  \implies(i)**. Suppose TT is acyclic with n−1n-1 edges, and let it have cc connected components. Each component is itself connected and acyclic, so by the already-proven direction (i)  ⟹  \implies(ii) applied to each component separately, a component with nin_i vertices has ni−1n_i - 1 edges. Summing over all components, the total edge count is ∑i(ni−1)=n−c\sum_i (n_i - 1) = n - c. Since the total is given as n−1n-1, we get n−c=n−1n - c = n - 1, so c=1c=1: TT is connected.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. Reinhard Diestel (2017). Graph Theory
  2. David R. Karger, Philip N. Klein, Robert E. Tarjan (1995). A randomized linear-time algorithm to find minimum spanning trees · DOI:10.1145/201019.201022
  3. Aaron Schild (2017). An almost-linear time algorithm for uniform random spanning tree generation · arXiv:1711.06455 [preprint, not peer-reviewed]