What is cyclomatic complexity and why is it important?
Answer Posted / sheetal
What is cyclomatic complexity
Cyclomatic complexity is a computer science metric
(measurement) developed by Thomas McCabe used to generally
measure the complexity of a program. It directly measures
the number of linearly independent paths through a programs
source code.
The concept, although not the method, is somewhat similar to
that of general text complexity measured by the
Flesch-Kincaid Readability Test.
Cyclomatic complexity 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. By definition,
CC = E - N + P
where
CC = cyclomatic complexity
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 ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the three parts of an http response?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
How to implement Authentication and Authorization?
I’m having some trouble with cas. How can I diagnose my problem?
What are the steps involved to fill a dataset?
What is applicatio domain?
Which is the parent class of the web server control?
What is the base class from which web forms are inherited?
How does session id work?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
Is asp.net mvc front end or backend? : Asp.Net MVC
What are all the various Estimation Techniques available ?
Which method is used to force all the validation controls to run?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
What is page request in asp.net?