Skip to main content

compute_cyclomatic

Function compute_cyclomatic 

Source
pub fn compute_cyclomatic<N, E>(graph: &Graph<N, E>) -> Vec<CyclomaticReport>
where N: ClassNode, E: EdgeKind,
Expand description

Compute the full per-class cyclomatic readout for every node in graph.

Pulls the cyclomaticComplexity JSON blob via Self::cyclomatic_complexity (added to the ClassNode trait). Nodes without a blob yield a report with all Option fields set to None.