Similar questions 2 more →
Graph Theory

Answer & solution
Official answer: C
The source asks about undirected graphs. Each edge contributes 2 to the sum of vertex degrees, so that sum is 2|E| and even. Reducing the sum modulo 2 shows that the number of odd-degree vertices must also be even. Thus both P and Q hold, C.
Count edge endpoints in two ways. Summing degrees counts each undirected edge once at each end, so Σdeg(v)=2|E| and Q holds. Separate even- and odd-degree vertices. Even degrees contribute 0 modulo 2; each odd degree contributes 1. Since the total is even, the count of odd contributions must be even, proving P. The result also accommodates loops if each loop contributes 2 to degree, though the ordinary simple-graph convention suffices.