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's the ASP.Net Application life cycle?
Explain the main function of razor in asp.net? : asp.net mvc
Explain different types of Caching techniques in ASP.NET?
Mention the execution process for managed code?
How Can assign alias name for ASP.NET Web API Action?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
how can create login from create and written conde in asp.net
3. What goals do you have in your career?
Is there any alternative to avoid name collisions other then Namespaces?
What is the purpose of asp.net?
What is the difference between user control and custom control?
What are the parts of an http response?
Explain login control and form authentication.
How can we register exception filter from the action?
Explain Authentication mechanism in dotnet