Cyclomatic Complexity from a Control-Flow Graph
Equation and meaning
Leave the value you want to find empty. The verified answer appears automatically.
\[V_{g} = E_{g} - N_{g} + 2 \cdot P_{g}\]
- E_g: Graph edge count (whole number)
- N_g: Graph node count (whole number)
- P_g: Connected component count (whole number)
- V_g: Cyclomatic complexity (whole number)
Variables in this formula
Eg
Graph edge count (whole number)
Ng
Graph node count (whole number)
Pg
Connected component count (whole number)
Vg
Cyclomatic complexity (whole number)