what is cyclomatic complexity? plz explain with example

Answer Posted / err. nilesh

cylomatic complexity is technique used to find out the path
coverage.Mathematically, the cyclomatic complexity of a
structured program[note 1] is defined with reference to the
control flow graph of the program, a directed graph
containing the basic blocks of the program, with an edge
between two basic blocks if control may pass from the first
to the second. The complexity M is then defined as:[2]

M = E − N + 2P

where

E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does 100% statement coverage mean?

1802


Hello testers I am an Bsc Hotel mgmt Degree holders but now am doin my software testin programme, side by MCA Master degree an have 6 months exp i testing in company.. i want to change my CV according IT based. so can anyone help me with sendin any sample CV of urs.. do me this favour it wil be very helpful for me prepare CV for interviews....

1680


Tell me some Adhoc testing scenarios of ebay (online auction product)?

3385


any one please send me any test case examples with tabular columns in manual testing

1742


hello there, can anyone tell me what type of question does lg soft company ask in written test especially for a quant part? Thanku

1398






Is Anyone attended the manual testing interview with capgemini in recent past. please let me know the type of questions they can ask. Thanks

2877


What is state transition?

657


date format and we should 8 digits - not accepted only /accepted write how many in test cases in the date format valid , and in valid

1040


What is baseline testing?

640


What is Bomb Testing?

1755


Hi, I want "Intergraph" placement papers for experienced people which was conducted recently in Hyderabad. Thanks, Purnima.

1934


what is localization and globalization.and what are the ways way are going to test the particular application?how can we identify factual, visual, corrupted characters, link errors, formatting errors, etc in locallization?iam going to attend the interview on localization concepts and languages like : German, Japanese, French, Russian, Italian, Chinese, Korean, Portuguese and Spanish .tell me the process how to do testing above concepts let me know its urgent:anilaluvala@gmail.com 9908814046

1577


Artifacts in design phase of SDLC ?

3065


what is TAS language which is used as a language for some projects/

1587


Name three reasons why the tester may choose to record in Context Sensitive mode.

1852