Skip to main content

analyze_graph_data

Function analyze_graph_data 

Source
pub fn analyze_graph_data(
    imports: &HashMap<String, HashSet<String>>,
    target: GraphTarget,
    limit: usize,
) -> GraphReport
Expand description

Analyze graph-theoretic properties of an abstract dependency graph.

Takes an adjacency list (HashMap<String, HashSet<String>>) and a limit for the number of items to return in each section. Pass 0 or usize::MAX for no limit — 0 is treated as “unlimited” so callers do not accidentally truncate all results to empty Vecs while stats counts still reflect the full data (which would produce misleading reports). The target parameter is recorded in the report for display.