1.

What Is Cyclomatic Complexity In A Software Program?

Answer»

Cyclomatic complexity is the number of linearly independent paths through a program's SOURCE code. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to the commands of a program, and a directed edge connects two nodes if the SECOND command MIGHT be executed immediately after the first command.

CC = E − N + P

Where
CC= cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected COMPONENTS.

Cyclomatic complexity is the number of linearly independent paths through a program's source code. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to the commands of a program, and a directed edge connects two nodes if the second command might be executed immediately after the first command.

CC = E − N + P

Where
CC= cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components.



Discussion

No Comment Found