cognis-graph (crate name cognis-graph, repo dir crates/cognisgraph) is the graph runtime. Pregel-style supersteps, typed state, conditional Goto, three checkpointer backends, seven stream modes, three viz formats.
Crate metadata
Modules at a glance
Key types
Graph<S>
node_fn
NodeOut
Goto
GraphState
#[derive(GraphStateV2)] from cognis-macros emits the Update struct and the impl. Reducer attributes: #[reducer(append/last_value/add/merge)].
CompiledGraph<S>
Checkpointer
InMemoryCheckpointer<S>::new(), SqliteCheckpointer::open(path) (feature sqlite), PostgresCheckpointer::connect(dsn) (feature postgres).
StreamMode
StreamModes::only(StreamMode::Updates), StreamModes::default().push(...), StreamModes::debug(), StreamModes::none().
Feature flags
See also
Graphs and state
User guide.
Control flow
Goto, edges, fan-out.
Checkpointing
Time travel and resume.
Streaming
Per-mode event streams.