Skip to content
Official PYQ · 2002

GATE CS 2002 Q1.25 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The maximum number of edges in a nn-node undirected graph without self loops is

Choose one option
View worked solution

Answer: B

To find the maximum number of edges in an undirected graph with nn nodes and no self-loops, we consider the case of a complete graph (KnK_n).

In a complete graph, every pair of distinct vertices is connected by exactly one edge. Since there are no self-loops, we do not have any edges connecting a vertex to itself.

The number of ways to choose a pair of distinct vertices from nn available vertices is given by the combination formula:

(n2)=n(n−1)2\binom{n}{2} = \frac{n(n-1)}{2}

Thus, the maximum number of edges in such a graph is n(n−1)2\frac{n(n-1)}{2}.

Correct Option: B

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions