What is cyclomatic complexity?
Answers were Sorted based on User's Feedback
Hi,
Cyclomatic complexcity is a methodology to measure the
complexity at a certain area of code.In other words it an
another way to reach at defect clustering.
Cyclomatic complexity is to measure the number of
independent paths in a program's source code.
The formula it follow: M = E- N + 2P
where
M = cyclomatic complexity
E = number of edges of the graph
N = number of nodes of the graph
P = the number of connected components.
**The easier one is like:n(umber of Decision statements in
the program being tested plus one.)
It provides the degree of testing/review required in a
certain area of code.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vidya
Cyclomatic complexity is a software metric (measurement).
It was developed by Thomas McCabe and is used to measure
the complexity of a program. It directly measures the
number of linearly independent paths through a program's
source code. It is computed using a graph that describes
the control flow of the program. The nodes of the graph
correspond to the commands of a program. A directed edge
connects two nodes if the second command might be executed
immediately after the first command.
Definition
M = E − N + 2P
where
M = cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components.
"M" is alternatively defined to be one larger than the
number of decision points (if/case-statements, while-
statements, etc) in a module (function, procedure, chart
node, etc.), or more generally a system.
Separate subroutines are treated as being independent,
disconnected components of the program's control flow graph.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / rahat menon
cyclomatic complexity is one practised by phsyco people ...
it is a way to find out how complex dat person is ..
scientist who r making research on this has gone mad n
pissed ..
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
RAHAT
Your Psycho spelling wrong. I have a feeling you are the
psyco. Since you are messing with wrong thing.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to write the test cases for the Date Format like dd/mm/yyyy?
why we do testing ? what r the uses?
10 Answers IBM, Thatavarti Technologies,
how cani do requirement testing using some testcase
A payroll system?
0 Answers E-Clear Technologies,
What is is the meaning of Shakedown testing in Software Development.
what is validation and verification
what is web testing and what should you test in web testing?
I'm looking for a list of software testing conferences, please help me.
If any OOS not identified route cause then how can close the OOS
A cube of side 4cm is painted with 3 colors red, blue and green in such a way that opposite sides are painted in the same color. This cube is now cut into 64 cubes of equal size. 1. How many have at least two sides painted in different colors. 2. How many cubes have only one side painted. 3. How many cubes have no side painted. 4. How many have exactly one side not painted.
Who in the company is responsible for Quality?
Can u plz explan Agile Methodology? In testing how agile methodology is used.