Consider the following statements regarding simple undirected graphs
I. If a graph G with n vertices has n - 1 edges, then G is a tree.
II. If a graph G with n vertices is acyclic then G is a tree.
Which of the above statements are correct?
A
Only II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Both I and II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Only I
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of these
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D None of these Both are false.
I is false. Here's a graph has 4 vertices and 3 edges, and yet it is not a tree because it is not connected.
II is false because even though G is acyclic, G may be disconnected. So II is also false.