Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Cyclomatic Complexity formula

The formula for calculating CC is as:

CC = E~N+2

Where:
E= Number of edges

N= Number of nodes.

Cyclomatic complexity = E - N + 2*P

where,

E = number of edges in the flow graph.

N = number of nodes in the flow graph.

P = number of nodes that have exit points

You might also like