What is Cyclomatic Complexity?
Cyclomatic complexity is used to measure the complexity of the software using the control flow graph of the software. It is a graphical representation, consisting of following:
NODE: statement of the program is taken as node of the graph.
Edges: the flow of command is denoted by edges. Edges are used to connect two node , this show flow of control from one node to other node in the program.
Using this node and edges we calculate the complexity of the program.
This determines the minimum number of inputs you need to test always to execute the program.