1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! # dagex
//!
//! A pure Rust DAG executor supporting implicit node connections, branching, and config sweeps.
//!
//! ## Features
//!
//! - **Implicit Node Connections**: Nodes are automatically connected based on execution order
//! - **Branching**: Create parallel execution paths with `.branch()`
//! - **Config Sweeps**: Use `.variants()` to create configuration variations
//! - **DAG Optimization**: Automatic inspection and optimization of execution paths
//! - **Mermaid Visualization**: Generate diagrams with `to_mermaid()`
//!
//! ## Example
//!
//! ```rust
//! use dagex::{Graph, GraphData};
//! use std::collections::HashMap;
//!
//! fn data_source(_: &HashMap<String, GraphData>) -> HashMap<String, GraphData> {
//! let mut result = HashMap::new();
//! result.insert("output".to_string(), GraphData::string("Hello, World!"));
//! result
//! }
//!
//! fn processor(inputs: &HashMap<String, GraphData>) -> HashMap<String, GraphData> {
//! let mut result = HashMap::new();
//! if let Some(data) = inputs.get("input").and_then(|d| d.as_string()) {
//! result.insert("output".to_string(), GraphData::string(data.to_uppercase()));
//! }
//! result
//! }
//!
//! let mut graph = Graph::new();
//! graph.add(data_source, Some("Source"), None, Some(vec![("output", "output")]));
//! graph.add(processor, Some("Processor"), Some(vec![("output", "input")]), Some(vec![("output", "output")]));
//!
//! let dag = graph.build();
//! ```
pub use Graph;
pub use ;
pub use ;
pub use GraphData;
pub use StatResult;
pub use ;