The metric calculation is based on the following article and calculates the cyclomatic complexity of the
program.
Article: McCabe,ThomasJ."Acomplexitymeasure."IEEETransactionsonsoftwareEngineering4(1976):308-320.
The Average Cyclomatic Complexity per Method is calculated counting the predicates (i.e., decision
points, or conditional paths) on each method plus one, then a mean of all methods is returned as the
final value of ACCM.
The cyclomatic complexity of a program represented as a graph can be calculated using a formula of graph
theory:
v(G) = e - n + 2
Where "e" is the number of edges and "n" is the number of nodes of the graph.
Another good reference is: Woodward,MartinR.,MichaelA.Hennell,andDavidHedley."Ameasureofcontrolflowcomplexityinprogramtext."IEEETransactionsonSoftwareEngineering1(1979):45-50.
perl v5.40.0 2024-11-17 Analizo::Metri...CycloComplexity(3pm)