Questions tagged [cyclomatic-complexity]
35 questions
11
votes
6 answers
Do iterative methods reduce cyclomatic complexity and improve supportability?
Do iterative methods such as are commonly found in modern languages such as C#, JavaScript, and (hopefully) in Java 8 reduce cyclomatic complexity's impact on understandability and supportability of code?
For example in C# we might have the…

C. Ross
- 2,926
4
votes
3 answers
Can we have a negative cyclomatic complexity?
I am having a hard time to understand cyclomatic complexity. I went through some videos in youtube for this. I got negative value for cyclomatic complexity when I use this formula M = E - N + P. I found this formula as well E = E - N + 2P. I would…

Jay Jay
- 41
3
votes
1 answer
Cyclomatic Complexity Question
I have a general question pertaining to Cyclomatic Complexity. Please have a look at the attached source code:
private void downShift(int index)
{
// index of "child", which will be either index * 2 or index * 2 + 1
int childIndex;
//…

Al-geBra
- 47