Handshaking Lemma: Proof by Induction
Theorem
For any finite graph , the sum of the degrees of all vertices is equal to twice the number of edges:
Proof by Induction
We will use induction on the number of edges, .
Base Case: ()
If , then the graph has no edges. Therefore, all vertices have a degree of . Thus:
The base case holds.
Inductive Hypothesis:
Assume the theorem holds for any graph with edges, where . That is, for a graph with :
Inductive Step:
We need to show that the theorem holds for a graph with edges.
Consider a graph with .
Remove an arbitrary edge from . This results in a new graph where and , with .
By the inductive hypothesis, for graph :
Now, add the edge back to to obtain the original graph .
- If , then and . For all other vertices , .
- If (loop), then .
In either case, the sum of degrees in increases by compared to .
Therefore:
Thus, the theorem holds for a graph with edges.
Conclusion:
By the principle of mathematical induction, the Handshaking Lemma holds for all finite graphs: