The degree of a vertex in the graph , denoted by or just (or sometimes , as in the book), is the number of edges that are incident to (with loops counted twice, i.e. each loop on contributes 2 to )
In any graph, the number of vertices of odd degree is even
Proof
Let be vertices of graph with even degree and let be vertices of odd degree
Let
and
By Theorem 3.1, is even
Since is the sum of even numbers, is even
So must be even
Since is the sum of odd numbers, must be even
Friendship Puzzle
At any party of two or more people, show that there are always two people with exactly the same number of friends at the party
Proof
Let be a simple graph with vertex set denoting people at the party
Edges of are defined as follows: if and are friends
For number of friends of
Consider the following 2 cases
Case 1: Everyone at the party has at least one friend at the party
So for every
Since variables are each assigned one of numbers from the set, at least two of them must have the same value (Pigeonhole Principle)
Case 2: Someone at the party does not have any friends at the party
For some
So for every
Since variables are each assigned one of numbers from the set, at least two of the must have the same value (Pigeonhole Principle)