Module dag

Module dag 

Source
Expand description

DAG (Directed Acyclic Graph) analysis for dependency tracking.

Mirrors the TypeScript DAG model (dag-types.ts) and provides graph analysis algorithms that can be compiled to WASM for browser-side interactive analysis.

Structsยง

Dag
Complete DAG state: nodes + reverse index.
DagNode
A single node in the DAG.
ImpactResult

Enumsยง

DagError
NodeStatus
Node status.
NodeType
Node type within the DAG.

Functionsยง

barycenter ๐Ÿ”’
Barycenter: average position of neighbors in the given position map.
cross_product ๐Ÿ”’
position_map ๐Ÿ”’
Build a map from node_id โ†’ position_index within a layer.
segments_intersect ๐Ÿ”’
Check if two line segments intersect (for crossing count).