GATE CSE 2022Graph Theory › Graph Connectivity & Degree SequencesVerified
GATE CSE 2022 PYQ: Consider a simple undirected graph of 10 10 10 vertices. If the graph is disconnected, then the maximum…
Answer
36
Approach
For a disconnected simple graph on $n$ vertices, the maximum number of edges is obtained by partitioning the vertices into exactly two groups and making each group a complete graph. The edge count is maximized when one group has $n-1$ vertices and the other has 1 vertex, since $\binom{n-1}{2}+\binom{1}{2}$ is largest among all bipartitions.
A disconnected graph can be formed by isolating one vertex and making a complete graph on the remaining 9 vertices. That complete graph has $\binom{9}{2}=36$ edges, and the isolated vertex contributes none, so 36 is achievable and maximal because connecting all 10 vertices would require $\binom{10}{2}=45$ edges and would make the graph connected.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.