graph-theory

Definition

Handshaking Lemma (Simple Undirected)

In a simple undirected graph , it holds that:

where is the degree of .

Handshaking Lemma (Directed)

In a directed graph , it holds that:

Proof

Proof (Simple Undirected)

In a simple undirected graph, every edge is incident to exactly two vertices, namely and . Hence, when summing the degrees over all vertices, each edge is counted exactly twice: once in and once in . Therefore,