Registry / utility / daggy
library0.9.0rscratesunverified

A directed acyclic graph data structure library built on top of petgraph.

# Cargo.toml [dependencies] daggy = "0.9.0"
INSTALL
IMPORT
SIG · DAGGY
D
daggy
utilityrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dag
use daggy::Dag;

Creates a directed acyclic graph and adds nodes and edges.

use daggy::Dag; fn main() { let mut dag = Dag::new(); let parent = dag.add_node("parent"); let child = dag.add_node("child"); dag.add_edge(parent, child, ()); println!("DAG created with {} nodes", dag.node_count()); }
Debug
Known issues
gotchaAdding an edge that creates a cycle will panic.
fix
Use add_edge_with_cycle_check or ensure no cycles beforehand.
affects: >=0.0.0
Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
daggy — cargo add daggy · libregistry