UGC NET Paper 2 (Computer Science)Hard

A graph has 13 vertices, 17 edges and is connected. Its cyclomatic number (number of independent cycles) is:

  1. A. 4
  2. B. 5
  3. C. 6
  4. D. 7

Correct answer: B. 5

E - V + 1 = 17 - 13 + 1 = 5; McCabe's V(G) = E - N + 2 = 6 counts the extra path for a program flow graph, a common slip.

More UGC NET Computer Science and Applications questions

Exams that ask this topic