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

Related Articles

GATE | GATE-CS-2001 | Question 50

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

How many undirected graphs (not necessarily connected) can be constructed out of a given set V = {v1, v2, … vn} of n vertices?
(A) n(n-1)/2
(B) 2n
(C) n!
(D) 2n(n-1)/2


Answer: (D)

Explanation: There are total n*(n-1)/2 possible edges. For every edge, there are to possible options, either we pick it or don’t pick. So total number of possible graphs is 2n(n-1)/2.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads