StreakPeaked· Practice

ExamsGATETechnical

Which of the following statements are TRUE for undirected graphs? P: Number of odd degree vertices is even. Q: Sum of degrees of all vertices is even.

  1. P only
  2. Q only
  3. Both P and Q
  4. Neither P nor Q

Correct answer: Both P and Q

Solution

In undirected graphs, the sum of the degrees of all vertices is always even because each edge contributes two to the total degree count. Additionally, the number of vertices with odd degrees must be even due to the Handshaking Lemma, which states that the sum of the degrees of all vertices is equal to twice the number of edges.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →