Quantcast
Typesetting math: 100%

cyclomatic complexity

Last modified by
on
Jan 31, 2025, 2:01:47 PM
Created by
on
Aug 19, 2014, 9:16:48 PM
CC=E-N+2PCC=EN+2P
(E)Edges(E)Edges
(N)Nodes(N)Nodes
(P)Exit Nodes(P)Exit Nodes
Tags
UUID
e6d0bfd1-da27-11e2-8e97-bc764e04d25f

The Cyclomatic Complexity calculator computes a complexity factor based on the number of edges, nodes, and exit nodes.

INSTRUCTIONS: Enter the following:

  • (E) Edges
  • (N) Nodes
  • (P) Exit Nodes

Cyclomatic Complexity (CC): The calculator returns the factor as a real number.

The Math / Science

The Cyclomatic Complexity estimation technique is used to compute the complexity of a program, algorithm, function, module, method, or class by computing the number of linearly independent paths through the code. The computation of the cyclomatic complexity is abstracted from the control flow graph of the program. The nodes of the graph correspond to functionally indivisible code blocks and edges connect two nodes when successive blocks must execute one after the other.

The formula for Cyclomatic Complexity is:

CC = E - N + 2 * P

where:


Computer Science Calculators


String Manipulation Equations:


This equation, cyclomatic complexity, is used in 1 page
  • Comments
  • Attachments
  • Stats
No comments
This site uses cookies to give you the best, most relevant experience. By continuing to browse the site you are agreeing to our use of cookies.