ScholarGate
Assistent
Machine learningSoftware Metrics

Cyklomatisk kompleksitet

Cyklomatisk kompleksitet (CC), introduceret af Thomas McCabe i 1976, er en kvantitativ metrik, der måler antallet af lineært uafhængige stier gennem en funktions kontrolflowgraf. En funktion med høj cyklomatisk kompleksitet er sværere at forstå, teste og vedligeholde; McCabe anbefalede en tærskelværdi på 10 som kompleksitetsgrænsen for vedligeholdelighed.

Åbn i MethodMindSnartVideoSnartDownload slides

Læs hele metoden

Kun for medlemmer

Log ind med en gratis konto for at læse dette afsnit.

Log ind

Method map

The neighbourhood of related methods — select a node to explore.

Cyklomatisk kompleksitet
Halstead-kompleksitetCK-metrikker

Kilder

  1. McCabe, T. J. (1976). A complexity measure. IEEE Transactions on Software Engineering, SE-2(4), 308–320. DOI: 10.1109/TSE.1976.233837
  2. Campbell, G. H. (1986). Defining a good metric, a software testing perspective. ASQ Software Quality Conference. link
  3. Nagy, C., & Kriebel, K. (2001). Achieving optimal complexity and reliability. SAMS Publishing. ISBN: 0672322285

Sådan citerer du denne side

ScholarGate. (2026, June 3). Cyclomatic Complexity Metric. ScholarGate. https://scholargate.app/da/numerical-methods/cyclomatic-complexity

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

Compare side by side

Refereret af

ScholarGateCyclomatic Complexity (Cyclomatic Complexity Metric). Hentet 2026-06-15 fra https://scholargate.app/da/numerical-methods/cyclomatic-complexity · Datasæt: https://doi.org/10.5281/zenodo.20539026