reflow_graph
Graph data structures for Reflow — nodes, edges, initial packets, exposed ports, subgraph boundaries, import/export, and graph analysis.
Most users should depend on
reflow_rtwhich re-exports this crate asreflow_rt::graph. Depend directly onreflow_graphonly for graph tooling, editors, or serializers that do not need the runtime executor.
What it provides
Graph— in-memory graph model with nodes, connections, and IIPs.GraphExport— serializable snapshot that editors and tools read and write.- Graph history, validation, and lightweight analysis helpers.
Quick glance
use ;
// Author a graph programmatically.
let mut graph = new;
graph.add_node;
// Or load one that a tool produced.
let json = read_to_string?;
let export: GraphExport = from_str?;
let loaded = load;
Executing a graph requires a Network from reflow_network and registered actors from reflow_components. Start at reflow_rt for that.
License
MIT OR Apache-2.0.