Cyclomatic complexity = number of linearly independent paths cyclomatic complexity=E−N+2where E is the number of edgeswhere N is the number of nodes