Handshake lemma
In a finite undirected graph, the sum of all vertex degrees is twice the number of edges. Counting the same edge ends in two ways gives the identity.
Remembering
A degree counts incident ends. A loop has two ends at one vertex. An odd-degree vertex has an odd number of incident ends.
Understanding
Count edge ends by walking down a list of edges, two ends at a time. Count them again by grouping the ends by vertex. The groups change while the total stays fixed.
Applying
An event records degrees 3, 3, 2, 2 and 2. Their sum is 12, so a graph with those degrees has six edges. If one entry were miscopied as 1 instead of 2, the odd total would expose the error.
Analyzing
The sum is always even, so the number of odd-degree vertices must also be even. Passing this check does not establish that every proposed list is realizable as a simple graph.
Evaluating
Use the identity as a consistency test for network data. A duplicated edge and an omitted edge can cancel in the total, so inspect identities as well as counts.
Creating
Design a small network with exactly four vertices of odd degree. Supply both its edge list and a degree count so a partner can audit the construction.
Further reading from OpenStax, Graph Basics. Explanations and examples by BloomWiki.
Related study: Graph isomorphism.