How the value of P in cyclomatic complexity is calculated?
P:The number of connected path.
Answer Posted / dheeraj shandilya
McCabe's cyclomatic complexity(M) is given by:
M=L-N+2P
where L= no. of links in flowgraph
N= no. of nodes in flowgraph and
P= no. of connected component
(or no. of disconnected parts of flowgraph)
In graph theory, a connected component of an undirected
graph is a subgraph in which any two vertices are connected
to each other by paths, and which is connected to no
additional vertices. For example, see slide no 21(40) of
www.cs.drexel.edu/~spiros/teaching/SE320/slides/metrics.ppt
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are the different ways to check a date field in a website?
Actually by using severity you should know which one you need to solve so what is the need of priority?
Can any1 tell me suppose u r doing manual testing on unix platform with Shell Script, then how it is done? How u r implementing it & what is the use of Shell scripting on Manual Testing?
what are metrics and what are metrics did u collect in you are project
Define brain stromming and cause effect graphing?
what risks do u faced u r projest how do you solve
Test cases have written according to Flow of the software working or according to Screens?
What is stub?
what is the diff. bw separate database testers and manual testers with sql knowledge guys... iam confusing so much ,,in cmpny database testers are not working on manual..? both positions are same are not? explian clesly with example? thank u
what is the test plan of facebook?
Does an increase in testing always improve the project?
Scenario-based testing Option 1 concentrates on actor and software interaction Option 2 misses errors in specifications Option 3 misses errors in subsystem interactions Option 4 Both 1 abd 2
About Testing
What is the test harness?
What is mutation testing & when can it be done?