Expand description
Dependency graph construction for sdivi-rust.
Builds a petgraph-backed directed dependency graph. Two entry points:
build_dependency_graph(featurepipeline-records, ON by default) — takessdivi_parsing::feature_record::FeatureRecordslices from the parsing stage.build_dependency_graph_from_edges(always available) — takes raw node paths and(from, to)edge pairs for WASM / pure-compute consumers.
§Quick Start
use sdivi_graph::dependency_graph::build_dependency_graph_from_edges;
use sdivi_graph::metrics::compute_metrics;
let dg = build_dependency_graph_from_edges(&[], &[]);
let m = compute_metrics(&dg);
assert_eq!(m.node_count, 0);Re-exports§
pub use dependency_graph::build_dependency_graph_from_edges;pub use dependency_graph::DependencyGraph;pub use dependency_graph::GraphError;pub use metrics::compute_metrics;pub use metrics::GraphMetrics;pub use dependency_graph::build_dependency_graph;pub use dependency_graph::build_dependency_graph_with_go_module;pub use dependency_graph::build_dependency_graph_with_tsconfig;
Modules§
- dependency_
graph DependencyGraphconstruction from raw edges orFeatureRecordslices.- metrics
- Graph metric computation for
DependencyGraph.
Structs§
- TsConfig
Paths - Parsed alias map from
compilerOptions.pathsin a tsconfig / jsconfig file.
Functions§
- parse_
tsconfig_ content - Parses tsconfig.json / jsconfig.json content and returns alias info.