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

Mention some of the types of software testing?

1063


What do you like most about Quality Assurance/Testing?

3023


can you explain the software testing life cycle?

1075


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

2046


Why is it often hard for management to get serious about quality assurance?

1021


What is the strategy for automation test plan?

1125


1.what ia QA and QC? 2.how do you configure qtp and testdirector? 3.IN Online banking syatem project Which functionalities of QTP your using? 4.how do you test the money transform from one account to another account?

2555


I have a brand for product which will be delivered as per the subscription from customers.What are all the major functionalities u will test in that case?

1288


What is random testing?

1092


Explain what are test driver and test stub and why it is required?

1203


What is context driven testing?

1106


how cani do requirement testing using some testcase

2241


What are the key components of a bug report?

1032


What if the software is so buggy it ca not really be tested at all?

1113


Have you ever managed writing the test cases without having any documents?

1075