Question
Which of the following statements is/are TRUE for undirected graphs?
P: Number of odd degree vertices is even.
Q: Sum of degrees of all vertices is even.
Official answer and solution
- Official answer
- C
- From
- Official GATE 2013 answer key
Solution
Apply the Handshaking Lemma to deduce that the degree sum is always even and odd-degree vertices must appear in even count.
Let be any undirected graph with vertex set and edge set .
-
By Euler's Handshaking Lemma:
Because is an integer multiple of 2, the sum of the degrees of all vertices is always an even number.
Therefore, statement Q is TRUE. -
Partition the vertex set into (vertices with even degree) and (vertices with odd degree):
The sum is a sum of even integers, which is even.
Subtracting this even sum from the total even sum leaves as an even integer.
A sum of odd numbers can be even if and only if there is an even number of odd numbers.
Therefore, must be even, meaning the number of odd-degree vertices is always even.
Therefore, statement P is TRUE.
Both P and Q are TRUE (Option C).
Option (C)
Believing statement P can be violated in multigraphs or bipartite graphs, whereas it holds universally for all undirected graphs.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2013 Computer Science and Information Technology (CS)
- Question
- 25 of 65, printed as CS Q.25
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.