Q. Compute the McCobes cyclomatic complexity?
(i) compute the McCobe's cyclomatic complexity
(ii) Find out independent path
Ans
(i) Cyclomate complexity V (G)
V(G) = E-N+2
Where E is the number of flow graph edges and N is the no of nodes.
Consequently we have E = 8 N = 7 and V(G) = 8-7+2 = 3
(ii) Independent path
(i) 1, 2, 3,5,6,7
(ii) 1,2,3,4,5,6,7
(iii) 1, 2, 3,4,6,7