Similar questions 1 more →
Graph Theory

Answer & solution
Answer: Two vertices must share a degree, since degrees 0 and n−1 cannot both occur. (no official key was published)
Let the graph have n≥2 vertices. In a simple undirected graph each degree is an integer in {0,1,…,n−1}. Merely counting n possible degrees and n vertices does not yet prove a repetition; the key is that the extreme values cannot coexist.
If a vertex has degree n−1, it is adjacent to every other vertex, so every other vertex has degree at least 1. Thus no degree-0 vertex exists. Conversely, if an isolated vertex exists, no vertex can be adjacent to all n−1 others, so degree n−1 is absent.
There are therefore at most n−1 possible degrees in the graph: if there is an isolated vertex, use {0,…,n−2}; if not, use {1,…,n−1}. Assigning n vertices to at most n−1 degree values forces two into the same value by the pigeonhole principle.
The simple-graph convention matters. If parallel edges or loops were allowed, the bound n−1 would fail and so can the conclusion. For example, on three vertices put one edge between a and b, two parallel edges between a and c, and none between b and c. The degrees are 3,1,2, all distinct. The source's unqualified graph is interpreted in the standard simple-graph setting.