UGC-NET Dec 2011 · Introduction to Graph Theory

MCQ · 2 marks · Problem PROG-GRPH-0024

Maximum number of edges in a n -Node undirected graph without self loop is
  1. A
    $n^{2}$
  2. B
    $n(n – 1)$
  3. C
    $n(n + 1)$
  4. D
    $\frac{n(n - 1)}{2}$

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionIn a simple undirected graph each edge is an unordered pair of distinct vertices, and each pair can be joined at most once:\[\max|E|=\binom n2=\frac{n(n-1)}{2},\]attained by the complete graph \(K_n\). \(n(n-1)\) counts ordered pairs (directed edges) and \(n^2\) includes self-loops.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com