UGC NET Paper 2 (Computer Science)Moderate

The number of edges in a complete undirected graph with n vertices is:

  1. A. n(n-1)/2
  2. B. n(n+1)/2
  3. C. n^2
  4. D. n-1

Correct answer: A. n(n-1)/2

Each pair of vertices has one edge, giving C(n,2) = n(n-1)/2.

More UGC NET Computer Science and Applications questions

Exams that ask this topic