Computer Science Fundamentals
Software Engineering
Subjective
Feb 28, 2013
How to compute the cyclomatic complexity?
Detailed Explanation
The cyclomatic complexity can be computed by any one of the following ways.
- The numbers of regions of the flow graph correspond to the cyclomatic complexity.
- Cyclomatic complexity (G), for the flow graph G, is defined as: V(G)=E-N+2, E -- number of flow graph edges, N -- number of flow graph nodes
- V(G) = P+1 Where P is the number of predicate nodes contained in the flow graph.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts