Cyclomatic Complexity Calculator
Free online cyclomatic complexity calculator. Paste a code snippet (JavaScript, Python, Java, C/C++, C#, Go, PHP or Ruby) to count decision points and get the McCabe complexity with a risk rating, or compute M = E − N + 2P from a control-flow graph.