Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is cyclomatic complexity?

Answer Posted / vidya

Cyclomatic complexity is a software metric (measurement).
It was developed by Thomas McCabe and is used to measure
the complexity of a program. It directly measures the
number of linearly independent paths through a program's
source code. It is computed using a graph that describes
the control flow of the program. The nodes of the graph
correspond to the commands of a program. A directed edge
connects two nodes if the second command might be executed
immediately after the first command.


Definition

M = E &#8722; N + 2P

where

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

"M" is alternatively defined to be one larger than the
number of decision points (if/case-statements, while-
statements, etc) in a module (function, procedure, chart
node, etc.), or more generally a system.

Separate subroutines are treated as being independent,
disconnected components of the program's control flow graph.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to do load testing in POWERMHS? If yes how do you do that?

3396


Dear All, Is MBA Graduates Eligible for Software Testing jobs? Thanks Ramesh

2054


What are the different levels in software testing?

1086


List out the roles of software quality assurance engineer?

1088


what documnets qa engineer need for starting qa?

1994


i completed btech in IT in 2012.i am not good at programming.i want to do software testing.am i eligible for the course and how will be my future?please help and than you

4320


What is the difference between quality assurance and software testing?

1075


What is process area in cmmi?

1153


what is Conventional SPMs

2171


what is difference between smoke testing and sanity testing?

1243


Mention how validation activities should be conducted?

1056


What is the difference in responsibilities of programmers and qa analyst?

1139


What are the test artifacts involved in qa?

1198


How is negative testing different from positive testing?

1085


What is test metric is software testing and what information does it contains?

1090