Handshaking lemma
Statement
Suppose is a finite undirected graph. The handshaking lemma says that the quantities (1)-(4) are all equal. Note that the equality of all the quantities apart from (1) is obvious, and the main content of the lemma is the equality with (1).
- Twice the number of edges of .
- The sum of the degrees of all vertices of .
- The sum of the elements of the degree sequence of .
- The trace of the degree matrix of .
In particular, because the quantity defined by (1) is clearly an even nonnegative integer, it also shows that all the other quantities are even nonnegative integers.