Maths WorkshopMaths problems with full solutions
Exercise 880Combinatorics › Counting principlesL1Added 3 Nov 2026

Degrees in a graph

#graph degree#handshake lemma#parity

Statement

In a graph with nn vertices and mm edges, show that ∑vdeg⁡(v)=2m\sum_v\deg(v)=2m.

Hint

Double count pairs (vertex, incident edge).

Show solutionHide solution

Solution

Count pairs. {(v,e):v incident to e}\{(v,e):v\text{ incident to }e\}.

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

By edge. Each edge has 22 endpoints: 2m2m.

Conclusion. ∑vdeg⁡(v)=2m\sum_v\deg(v)=2m.

Corollary. The sum of degrees is always even.