GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 25

Handshaking lemma for undirected graphs

Discrete Mathematics · Graph Theory · Full GATE CSE 2013 paper

GATE 2013, Q25 1 mark · MCQ
Report issue

Graph Theory

Question 25, GATE 2013: For undirected graphs, assess P:the number of odd-degree vertices is even; Q:the sum of all degrees is even. A Ponly; B Qonly; C both; D neither.
Tap to enlarge
Your answer
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.

Original paper, page 5 · Answer key