ScholarGate
Assistent
Machine learningSoftware Metrics

Complexitat ciclòtica

La complexitat ciclòtica (CC), introduïda per Thomas McCabe el 1976, és una mètrica quantitativa que mesura el nombre de camins linealment independents a través del graf de flux de control d'una funció. Una funció amb alta complexitat ciclòtica és més difícil d'entendre, provar i mantenir; McCabe defensava un llindar de 10 com a límit de complexitat per a la mantenibilitat.

Obre a MethodMindAviatVídeoAviatDownload slides

Llegeix el mètode complet

Només per a membres

Inicia la sessió amb un compte gratuït per llegir aquesta secció.

Inicia la sessió

Method map

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

Fonts

  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

Com citar aquesta pàgina

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

Citat per

ScholarGateCyclomatic Complexity (Cyclomatic Complexity Metric). Recuperat el 2026-06-15 de https://scholargate.app/ca/numerical-methods/cyclomatic-complexity · Conjunt de dades: https://doi.org/10.5281/zenodo.20539026