How the value of P in cyclomatic complexity is calculated?
P:The number of connected path.



How the value of P in cyclomatic complexity is calculated? P:The number of connected path...

Answer / 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

More Manual Testing Interview Questions

what is difference between bug and defect who will find bug and who will find out defect ..(Like developer or tester)?

17 Answers   TCS,


What are testing techniques? What is difference between general and specific?

0 Answers   Wipro,


what do you mean by Develop test data through sourcing (or) handcrafting techniques

0 Answers   BVG,


What is Automation Test frame work ?

1 Answers   Virtusa,


What should be tested when Unit Testing is conducted?

1 Answers   Crea,






Training for Manual/QTP Testing from 6 years MNC experience engineer, working in Patni with Project .Guranteed Job training else fee back in Mumbai-mail-- >amol.dhumalatrediffmail dot com

0 Answers  


Explain Bug Tracker

6 Answers   eXensys,


What is Test Procedure? What are Test matrices? What is Tracibility matrix?

4 Answers   ABC,


WHAT IS THE DIFFERENCE BETWEEN PRIORITY AND SEVEARITY ?

2 Answers  


How to test the search functionality.For example in naukri advance search is there.how ca i test that page.

0 Answers  


Did you have access to all the modules(Requirements, Test plan,Test Lab, Defects, & Dashboard) in Quality Center(QC) or only to some particular ones?

1 Answers   ING,


write five negative testcase for web application?

2 Answers  


Categories