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

What is the difference between compatibility testing and cross browser testing?

637


What if there is not enough time for thorough testing?

567


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

1596


Explain what is a cause effect graph?

583


What is binary portability testing?

591






How to know that we have to use which tool for this project?

551


What are basic, core, practises for a QA specialist?

1842


What is bug?

575


What the first thing You’ll do as a SQA Tester if I hired You?

1621


What are the benefits of destructive testing?

606


Scenario :- when we test payment module in the eCommerce site, then how do we verify or actually check transaction failed and the amount will be returned in next few days? i am using pay pal / credit card.

905


How u r estimating the budget 4 the project?

1882


A water-quality monitoring system?

1148


What is is External Quality Assurance (EQA) and Final Inspection (FI)?

12289


What are the five common solutions for software developments problems?

696