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

Hi Friends, I have recently completed Testing course and planning to apply for jobs, I am Planning to put Banking Project in my resume but b4 that I need your help guys According to my knowledge in the banking project basically it contains 3 modules say 1. Banker 2. Admin 3. Customer Could you please explain me in terms of interview like how to explain each module and what exactly each module does and what type of testings we can do on banking project. Any help would be appreciated Thanks in advance Swapna

1 Answers  


What r the properties of Radio Button and Table Grid?How do we test Table Grid?

2 Answers   SoftSol,


How many TC you have written?How many TC you can write in a day?How many TC can you execute in a day?

2 Answers   HCL,


What do you do if the bug that you found is not accepted by the developer and he is saying its not reproducible.

0 Answers  


who preapares use case document? who preapares use functional point document? who preapares use test sceanario document?

1 Answers   Accenture,


Could anyone let me know five positive and negative testcases for ATM machine..?

1 Answers  


diff between usecase and testcase

8 Answers  


how can u do database testing manually?

4 Answers   HCL,


What is AGP?what is setup.inf?What are the ways to install driver?

1 Answers   nvidia,


Explain number of production defects measure?

0 Answers  


Easiest way to write test cases? How i can learn writing the test cases?

1 Answers   Accenture,


what is database testing?

1 Answers  


Categories