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.

Choose one option
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 G=(V,E)G = (V, E) be any undirected graph with vertex set VV and edge set EE.

  1. By Euler's Handshaking Lemma:

    ∑v∈Vdeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = 2 |E|

    Because 2∣E∣2 |E| is an integer multiple of 2, the sum of the degrees of all vertices is always an even number.
    Therefore, statement Q is TRUE.

  2. Partition the vertex set VV into VevenV_{\text{even}} (vertices with even degree) and VoddV_{\text{odd}} (vertices with odd degree):

    ∑v∈Vdeg(v)=∑v∈Vevendeg(v)+∑v∈Vodddeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = \sum_{v \in V_{\text{even}}} \text{deg}(v) + \sum_{v \in V_{\text{odd}}} \text{deg}(v) = 2 |E|

    The sum ∑v∈Vevendeg(v)\sum_{v \in V_{\text{even}}} \text{deg}(v) is a sum of even integers, which is even.
    Subtracting this even sum from the total even sum 2∣E∣2|E| leaves ∑v∈Vodddeg(v)\sum_{v \in V_{\text{odd}}} \text{deg}(v) 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, ∣Vodd∣|V_{\text{odd}}| 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).

Final answer

Option (C)

Common trap

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.