Skip to main content

Module error

Module error 

Source
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§

GraphError
Errors returned by graph-engine operations.

Constants§

MAX_EDGE_LABELS
Hard upper bound on the number of distinct edge labels an individual CsrIndex can intern. u32::MAX is the type-theoretic ceiling; leaving one slot unused lets callers use u32::MAX as an “invalid” sentinel should they need it.
MAX_NODES_PER_CSR
Hard upper bound on the number of nodes a single CsrIndex partition can hold. Each node occupies a u32 dense index; at 4 GiB nodes the index space is exhausted. u32::MAX is reserved as an “invalid” sentinel, so the usable cap is u32::MAX - 1.