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

The handshake lemma

#handshake lemma#degree sum#parity

Statement

Prove that in any graph ∑v∈Vdeg⁡(v)=2∣E∣\sum_{v\in V}\deg(v)=2|E|. Deduce that the number of odd-degree vertices is even.

Hint

Double count the set of incidences (v,e)(v,e) where vv is an endpoint of ee.

Show solutionHide solution

Solution

Double count. Count incidences {(v,e):v∈e}\{(v,e):v\in e\}.

By vertex. ∑vdeg⁡(v)\sum_v\deg(v).

By edge. Each edge has 22 endpoints: 2∣E∣2|E|.

Conclusion. ∑vdeg⁡(v)=2∣E∣\sum_v\deg(v)=2|E|, hence even. Splitting degrees into even and odd parts: the odd-degree sum must be even, so there are an even number of odd-degree vertices.