Cyclomatic complexity: Difference between revisions

Content deleted Content added
Kittell (talk | contribs)
updated broken links in reference, "A practical guide to object-oriented metrics"
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 113:
For example, consider a program that consists of two sequential if-then-else statements.
 
<sourcesyntaxhighlight lang="c">
if (c1())
f1();
Line 123:
else
f4();
</syntaxhighlight>
</source>
 
[[File:Control flow graph of function with two if else statements.svg|thumb|250px|right|The control flow graph of the source code above; the red circle is the entry point of the function, and the blue circle is the exit point. The exit has been connected to the entry to make the graph strongly connected.]]