Skip to main content

juncture_core/edge/
mod.rs

1//! Edge system for graph routing
2//!
3//! This module provides types for defining edges between nodes in a Juncture graph.
4//! Edges can be fixed (static) or conditional (dynamic routing based on state).
5
6mod compiled;
7mod r#types;
8
9pub use compiled::{CompiledEdge, TriggerSource, TriggerTable};
10pub use r#types::{Edge, PathMap, RouteResult, Router};
11
12/// Sentinel constant for graph entry point
13///
14/// Used as the virtual start node when setting entry points via [`super::StateGraph::set_entry_point`].
15pub const START: &str = "__start__";
16
17/// Sentinel constant for graph termination
18///
19/// Routing to `END` indicates that execution path has completed.
20pub const END: &str = "__end__";
21
22// Rust guideline compliant 2025-01-18