Skip to main content

Module algorithm

Module algorithm 

Source
Expand description

Graph algorithm plugins.

Two surfaces: AlgorithmProvider for black-box algorithms (the existing uni-algo library style), and GraphView — the stable, read-only topology API a provider obtains from its AlgorithmHost via AlgorithmHost::project to walk the graph without depending on uni-store / uni-algo types.

Structs§

AlgorithmContext
Per-invocation context passed to an AlgorithmProvider.
AlgorithmSignature
Static signature of an algorithm.
GraphProjectionSpec
Selects which subgraph an AlgorithmHost::project call materializes.
GraphScopeSpec
One pre-declared named projection from a CALL-site scopes map.
SliceReq
A required capability-slice version an algorithm declares in its signature.

Enums§

KnobReach
How a projection knob is reachable from a guest algorithm.
ProjectionKnob
Every graph-projection knob, enumerated so the guest/native surface contract is checked at compile time: adding a knob forces a classification in ProjectionKnob::reach and a key in ProjectionKnob::config_key (both wildcard-free matches), mirroring the capability every_variant_classified_exactly_once exhaustiveness test. This is the anti-drift guard for the guest/native gap issue #151 exposed. See docs/proposals/graphcompute_projection_parity_2026-07-19.md §4.

Constants§

HOST_CAPABILITY_SLICES
The capability slices this host implements, for load-time negotiation.

Traits§

AlgorithmHost
Host callback surfacing graph access to plugin algorithms.
AlgorithmProvider
A black-box graph algorithm.
GraphView
Stable, read-only topology view handed to a plugin algorithm.