Skip to main content

Crate rill_graph

Crate rill_graph 

Source
Expand description

§Rill Graph — Static DAG Signal Graph

This crate provides an immutable signal graph with static topology. Build once with GraphBuilder. The graph is a pure topology description — build_ir() produces a rill_lang::graph_ir::GraphIr, which rill-lang’s rill_lang::graph_compiler::compile transforms into a rill_lang::graph_engine::CompiledGraphEngine for execution.

§Key Features

  • Static DAG topology — connections are fixed after build
  • Kahn’s algorithm — automatic topological sort with cycle detection
  • Auto FanOut/FanIn — connections classified by topology (user never chooses)
  • GraphIr — intermediate representation for rill-lang compilation

Modules§

backend_factory
Backend factory for constructing I/O backends by name.
prelude
Prelude for convenient imports

Structs§

GraphBuilder
Mutable builder for an immutable signal graph.
GraphResource
A named resource (tape loop) shared between nodes in the graph.

Enums§

BuildError
Errors that can occur during graph construction.