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
How would you get asp.net running in apache web servers? Explain it's limitations.
What are the built-in objects in asp.net?
Explain the difference between webfarm and webgardens in .net?
What is a master page and what does it do?
How to sign out from forms authentication?
how can create login from create and written conde in asp.net
What is the difference between Session and response.Redirect?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
What is a web server? What are the load limits in it?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What is difference between or and orelse?
How you can access the values from the Repeater control in ASP.NET?
Is it possible to apply themes to an asp.net application? If yes, then how?
Which protocol is used in a web api?
How Can assign alias name for ASP.NET Web API Action?