Maths WorkshopMaths problems with full solutions
Exercise 473Combinatorics › Graph theoryHigh schoolAdded 3 Nov 2026

Trees

#tree#connected acyclic#edges

Statement

Show that a tree with nn vertices has exactly n−1n-1 edges.

Hint

Induction on nn: a tree has a leaf; remove it and apply the induction hypothesis.

Show solutionHide solution

Solution

Base. n=1n=1: 00 edges =n−1=n-1.

Inductive step. A tree with n≥2n\ge2 has a leaf vv (a vertex of degree 11; otherwise a longest path would give a cycle). Remove vv and its edge: the result is a tree with n−1n-1 vertices, hence n−2n-2 edges by induction. So the original tree has n−1n-1 edges.

Conclusion. ∣E∣=∣V∣−1|E|=|V|-1 for every tree.