Machine-translated by Google. Questions are authored in English.
Top

Discussion

Suppose a graph has 5 flow graph edges and 3 flow graph modes, the cyclometric complexity V(G) of flow graph G is ..............

  • A.-2
  • B.2
  • C.4
  • D.8

Answer: C

The cyclomatic complexity is 4.

For a flow graph with E edges and N nodes (the paper's 'modes'), McCabe's measure is

\[ \begin{aligned} V(G) &= E - N + 2 \\ &= 5 - 3 + 2 = 4 \end{aligned} \]

-2 is what you get by computing N - E, 2 omits the edges and nodes difference, and 8 adds E and N.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.