Definitions
from The Century Dictionary.
 Of or pertaining to a cycle or cycles.
from Wiktionary, Creative Commons Attribution/ShareAlike License.
 adjective mathematics Used to describe the
number ofedges that must be removed from agraph to ensure that no graphcycle remains; equal to the number ofedges , minus the number ofnodes plus one.  adjective network analysis Used to describe the number of
circuits in anetwork ; equal to the number of edges, minus the number of nodes plus the number of graphs.
Etymologies
Sorry, no etymologies found.
Examples

Second, because no matter how much tests you have, cyclomatic complexity will always get you in the most inappropriate times.

Second, because no matter how much tests you have, cyclomatic complexity will always get you in the most inappropriate times.

The closest thing that I can think of that comes close to whatever “structural complexity of algorithms” means is cyclomatic complexity, which I never touched on.

If I add a decision, the cyclomatic complexity value goes up by 1:

Notice the cyclomatic complexity is at 2 the lowest value possible.

In this tip we will start out with a simple example of cyclomatic complexity to understand the concept quickly then give some additional information on actual usage and suggested limits.

At a high level, we determine the value of cyclomatic complexity by counting the number of decisions made in our source code.

As with many metrics in our industry, there is no exact cyclomatic complexity limit that fits all organizations.

Essentially, with cyclomatic complexity, higher numbers are "bad" and lower numbers are "good".

We use cyclomatic complexity to get a sense of how hard any given code may be to test, maintain, or troubleshoot as well as an indication of how likely the code will be to produce errors.
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.