Open In App
Related Articles

Data Structures | Graph | Question 9

Improve Article
Improve
Save Article
Save
Like Article
Like

Which of the following statements is/are TRUE for an undirected graph? 

P: The number of odd-degree vertices is even 

Q: Sum of degrees of all vertices is even

(A)

P Only

(B)

Q Only

(C)

Both P and Q

(D)

Neither P nor Q



Answer: (C)

Explanation:

P is true for undirected graph as adding an edge always increases degree of two vertices by 1. Q is true: If we consider sum of degrees and subtract all even degrees, we get an even number because every edge increases the sum of degrees by 2. So total number of odd degree vertices must be even.


Quiz of this Question
Please comment below if you find anything wrong in the above post

Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads
Related Tutorials