Maths WorkshopMaths problems with full solutions
Exercise 966Combinatorics › Graph theoryL1Added 3 Nov 2026

Characterizations of trees

#tree#characterization#connected

Statement

Let GG be a graph with nn vertices. Show that the following are equivalent:
1. GG is a tree;
2. GG is connected and has n−1n-1 edges;
3. GG is acyclic and has n−1n-1 edges;
4. Between any two vertices there is a unique path.

Hint

For 2⇒32\Rightarrow3: if GG had a cycle, removing an edge would keep it connected but reduce edges below n−1n-1, contradicting the tree edge count.

Show solutionHide solution

Solution

1⇒21\Rightarrow2: by definition of tree (connected acyclic) plus the previous result.

2⇒32\Rightarrow3: suppose GG connected, n−1n-1 edges, and has a cycle. Remove an edge of the cycle: still connected, n−2n-2 edges. But a connected graph on nn vertices needs at least n−1n-1 edges. Contradiction. So acyclic.

3⇒43\Rightarrow4: acyclic means no repeated-vertex cycle, so paths between any two vertices, if they exist, are unique. Connected follows from "acyclic with n−1n-1 edges".

4⇒14\Rightarrow1: unique paths imply connected (paths exist) and acyclic (a cycle would give two paths).

Conclusion. The four are equivalent.