pub fn build_dependency_graph(records: &[FeatureRecord]) -> DependencyGraphExpand description
Builds a DependencyGraph from a slice of FeatureRecords.
Each record becomes one node. Import strings are resolved against the set
of known file paths; unresolvable imports are dropped at DEBUG level.
ยงExamples
use sdivi_graph::dependency_graph::build_dependency_graph;
use sdivi_parsing::feature_record::FeatureRecord;
use std::path::PathBuf;
let records: Vec<FeatureRecord> = vec![];
let dg = build_dependency_graph(&records);
assert_eq!(dg.node_count(), 0);