The cyclomatic complexity of the following graph is –

2022

The cyclomatic complexity of the following graph is –

image.pngimage.png
  1. A.

    4

  2. B.

    5

  3. C.

    7

  4. D.

    6

Attempted by 132 students.

Show answer & explanation

Correct answer: B

Cyclomatic complexity can be found using: V(G) = E − N + 2 (for a single connected graph) Count nodes: N = 7

Explore the full course: Niacl Ao It Specialist