718 views
0 0 votes

In given graph, i found only a and c as decision points ( 2 outgoing edges) . Hence cyclomatic complexity is 3. Am i correct?

2 Answers

1 1 vote
M=E-N+P

No. of edges =7

No. of Nodes=5

No. of Predicates =2 (at A,C)

Cyclomatic complexity =M=7-5+2 =4

Therefore Option B is Answer

M=R+1

R=3 since (region 1 ---- abc   ,  region 2 ------ bd  , region 3 -----bcde )

M=3+1=4
Position:
Show:

Related questions

6 6 votes
2 answers 2 answers
6.2k
6.2k views
jaiganeshcse94 asked May 30, 2016
6,204 views
The Cyclomatic Complexity metric V(G) of the following control flow graph3456
0 0 votes
0 0 answers
340
340 views
sachithacker asked Jun 22, 2016
340 views
0 0 votes
0 0 answers
298
298 views
sachithacker asked Jun 18, 2016
298 views
0 0 votes
0 0 answers
313
313 views
sachithacker asked Jun 18, 2016
313 views