For a flow graph cyclomatic complexity defines as ,
C=E-V+2 ,
where E is the number of edges and V is the number of vertices.
here ,E=9 V=6.
So ,Cyclomatic complexity =9-6+2=5
so correct option is B.
https://bbau.ac.in/dept/CS/TM/Cyclomatic.pdf
64.3k questions
77.9k answers
244k comments
80.0k users