Q. For the flow graph showed in figure compute McCabe's Cyclomatic Complexity.
Ans: In this flow graph Number of regions are 5 hence the Cyclomatic complexity is
= 5
OR
No of edges = 10
No of nodes (N) = 7
Therefore Cyclomatic complexity + E-N+2 = 10-7+2 = 5