Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Graph Data Model

The graph module provides the data structures for the pipeline visualization.

NodeData

#![allow(unused)]
fn main() {
pub struct NodeData {
    pub label: String,
    pub color: [f32; 3],
    pub mass: f32,
}
}
  • label: Human-readable name for the node (e.g., “Ingested”, “Validating”)
  • color: RGB values as floats [0-1] for visualization
  • mass: Relative size/weight for force-directed layout

EdgeData

#![allow(unused)]
fn main() {
pub struct EdgeData {
    pub weight: f32,
}
}
  • weight: Edge strength for layout calculations

Functions

create_pipeline_nodes

Returns the standard pipeline node definitions:

  • Ingested
  • Validating
  • Classifying
  • Reconciling
  • Committed

create_pipeline_edges

Returns the standard pipeline connections:

  • Ingested → Validating
  • Validating → Classifying
  • Classifying → Reconciling
  • Reconciling → Committed