What is cyclomatic complexity?

Answer Posted / mfsi_chinmayb

Hi,
Cyclomatic complexcity is a methodology to measure the
complexity at a certain area of code.In other words it an
another way to reach at defect clustering.
Cyclomatic complexity is to measure the number of
independent paths in a program's source code.
The formula it follow: M = E- N + 2P
where

M = cyclomatic complexity
E = number of edges of the graph
N = number of nodes of the graph
P = the number of connected components.

**The easier one is like:n(umber of Decision statements in
the program being tested plus one.)
It provides the degree of testing/review required in a
certain area of code.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can 2 tier architecture can be change as a 3 tier architecture

1600


What are the factors responsible for the estimation of system integration test cycle and total integration time?

637


a proj ws atarted and cloded within the second day why?it has good amt of resources.srs ws prepers and accepted by the client too.

1702


What are the different verification techniques you know?

595


What is a test strategy and what does it include?

590






-What do you think about unit testing? -How do you assure quality of the code you release? -How do you release software?

1710


What is the test ware?

606


Explain what is bug triage?

714


What is code inspection?

576


What are the table contents in testplans and test cases?

598


iq test

1367


Explain the process of project tailoring.

584


what are the feature of our test group?

1822


Write down the differences between the responsibilities of qa and programmers?

852


What are the functions of the Quality Assurance Group (QAG)?

3172