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

How do your characteristics compare to the profile of the ideal manager that you just described?

2809


what exactly is heuristic checklist approach for unit testing?

2829


whta is compile module?

1758


What are the various test case for google analytics, api keys , pay pal if you know please post me a answer. And how we will test

3156


Wat type of questions ll be asked in interview for an 1-2 yrs. experinced persond and i need some database concept question in testing.

1932






How soon the bug should get fixed?

717


What are some best practices that you should follow when writing test cases?

801


What a team leader will test first when s/he will get new module to test?

1649


What is the difference between a bug, a defect and an error?

774


Risk Analysis a) 2 step, b)3 step, c) 4 step, d) 6 step

1714


What are the different ways to check a date field in a website?

770


What are the advantages of automation over manual testing?

799


Do submit teststrategy to customer if yes at what time

1652


Which of these techniques is not useful for partition testing at the class level Option 1 attribute-based partitioning Option 2 category-based partitioning Option 3 equivalence class partitioning Option 4 state-based partitioning

10339


Why would we not include these?

783