Expand description
Typed error enum for the shared graph engine.
Every fallible operation on CsrIndex (label interning, edge insert,
edge delete) returns Result<T, GraphError>. Silent casts or
debug_assert! at capacity boundaries reproduce the same class of
bug they are trying to catch — loud, typed errors only.
Enums§
- Graph
Error - Errors returned by graph-engine operations.
Constants§
- MAX_
EDGE_ LABELS - Hard upper bound on the number of distinct edge labels an individual
CsrIndexcan intern.u32::MAXis the type-theoretic ceiling; leaving one slot unused lets callers useu32::MAXas an “invalid” sentinel should they need it. - MAX_
NODES_ PER_ CSR - Hard upper bound on the number of nodes a single
CsrIndexpartition can hold. Each node occupies au32dense index; at 4 GiB nodes the index space is exhausted.u32::MAXis reserved as an “invalid” sentinel, so the usable cap isu32::MAX - 1.