Skip to main content

build_dependency_graph

Function build_dependency_graph 

Source
pub fn build_dependency_graph(
    specs: &[&Spec],
    detail_level: GraphDetailLevel,
) -> (String, Vec<String>, Vec<String>)
Expand description

Build an ASCII dependency graph from specs.

Returns:

  • The ASCII graph as a string
  • List of root spec IDs (no dependencies)
  • List of leaf spec IDs (nothing depends on them)