Discrete Mathematics & Graph Theory
Calculate the cyclomatic complexity of a program using graph theory metrics. Input the number of edges, nodes, and connected components to determine code complexity.
Pre-configured examples to help you understand cyclomatic complexity calculation
Basic linear program with no branching
Edges: 3
Nodes: 4
Components: 1
Simple program with one conditional branch
Edges: 5
Nodes: 5
Components: 1
Program containing one loop and one if statement
Decision Points: 2
Program with multiple nested conditions and loops
Edges: 15
Nodes: 12
Components: 1