Expand description
Matrix integration hook — trait for the optional matrix layer.
pe-graph defines MatrixHook as the extension point for convergence
tracking and learned routing. pe-matrix provides the implementation;
pe-runtime wires them together. pe-graph never depends on pe-matrix.
When no hook is provided, the Pregel engine handles NodeResult::Converge
by applying the partial_update (degrading to Update) and uses the user’s
conditional edge function for routing — unchanged from pre-matrix behavior.
Structs§
- Default
Matrix Hook - Concrete implementation that bridges pe-matrix types into the hook trait.
- Matrix
Hook Handle - Wrapper around
Arc<dyn MatrixHook>for ergonomic use in the engine.
Traits§
- Convergence
Recorder - Trait for convergence tracking — implemented by pe-matrix ConvergenceTracker.
- Matrix
Hook - Hook for the optional matrix layer.
- Routing
Resolver - Trait for routing resolution — implemented by pe-matrix MatrixRouter.