Cyclomatic Complexity, in Software Testing, is a testing metric used for measuring the complexity of a software program. It is a quantitative measure of independent paths in the source code of a software program. Cyclomatic Complexity can be calculated by using control flow graphs or with respect to functions, modules, methods or classes within a software program.