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
hi this is ashok , i never worked in medical domain , can any one pls send me with proper exaple pls Question is while emergency or normal patitent enter into hospital he entered his first and last name and he enter emergency coloumn , write test case on these ,
Information about Automated Software Installer
what should be tested when credit card is used as payment option in ecommerce project?can anyone tell me in detail what to test n how to test when credit card is involved in web application?
How do test documents in a project span across the software development lifecycle?
What is the test harness?
in the account there is 10,000 rupees and i entered 20000, in this case how will you test the application
What is difference between V-Model and Agile Model?
what is port testing and do it comes in manual testing?
Can anybody give whole test cases for banking module.it should include from start to end .that will help me more.to do study.it should contain account,deposite,withdraw,fd,atm modules.?please try to give me??
What is your approach when requirements change continuously?
What is a test server?
Write the test cases for file transfer from one user to other from Google Drive/drop box?
Which is the best book to ref. for design the test cases/scenario in manual testing,which gives detailed idea with all the strategies ?
How to do the performance testing manually? Does you have a test case for that?
What is bug leakage?