cyclomatic-complexity-of-code

CARD:

Code complexity measurements are used to assess the risks of problems during code testing and maintenance. The higher the code’s complexity, the more difficult it becomes to ensure that it has an acceptable number of bugs and keep high maintainability. The most common approach to measuring code complexity is the McCabe Cyclomatic Complexity Metric (MCC). One of the formulas to draw complexity results for MCC is the following:

MCC = edges – nodes + return statements

FURTHER EXPLAINATION:

Overal benefits:

EXAMPLE:

Picture or project

REFERENCES: