Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE-IT-2004 | Question 5

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

What is the maximum number of edges in an acyclic undirected graph with n vertices?
(A) n-1
(B) n
(C) n + 1
(D) 2n-1


Answer: (A)

Explanation: n * (n – 1) / 2 when cyclic. But acyclic graph with the maximum number of edges is actually a spanning tree and therefore, correct answer is n-1 edges.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 10 Sep, 2018
Like Article
Save Article
Similar Reads