Data Structures & AlgorithmsEasyWipro · Accenture pattern

How many edges does a complete undirected simple graph on 10 vertices have?

  1. A. 45
  2. B. 100
  3. C. 90
  4. D. 55

Correct answer: A. 45

Every pair of vertices is joined once: C(10, 2) = 10 × 9/2 = 45. 90 counts each edge twice (as in a directed complete graph).

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic