ScholarGate
Assistent
Machine learningSoftware Metrics

Cyklomatisk komplexitet

Cyklomatisk komplexitet (CC), introducerad av Thomas McCabe 1976, är en kvantitativ metrik som mäter antalet linjärt oberoende vägar genom en funktions kontrollflödesgraf. En funktion med hög cyklomatisk komplexitet är svårare att förstå, testa och underhålla; McCabe förespråkade en tröskel på 10 som komplexitetsgräns för underhållbarhet.

Öppna i MethodMindSnartVideoSnartDownload slides

Läs hela metoden

Endast för medlemmar

Logga in med ett kostnadsfritt konto för att läsa avsnittet.

Logga in

Method map

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

Cyklomatisk komplexitet
Halstead-komplexitetCK Metrics

Källor

  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å citerar du den här sidan

ScholarGate. (2026, June 3). Cyclomatic Complexity Metric. ScholarGate. https://scholargate.app/sv/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

Refereras av

ScholarGateCyclomatic Complexity (Cyclomatic Complexity Metric). Hämtad 2026-06-15 från https://scholargate.app/sv/numerical-methods/cyclomatic-complexity · Datamängd: https://doi.org/10.5281/zenodo.20539026