Expand description
Graph identity types and rkyv archive helpers.
Extracted from graph/mod.rs per the 2026-04-30 renderer plan §6.4
decomposition target (5,459 LOC → split). Contains:
- Stable handle types (
NodeKey,EdgeKey) — petgraph index aliases. - Backend type aliases (
GraphDirection,GraphIndex). GraphViewId— per-graph-view-pane identity (UUID-backed).- rkyv
with = ...archive helpers forUuid,Point2D<f32>, andVector2D<f32>— bridge types between rkyv’s primitive archive shape and the actual field types used inNode/Edge/etc.
WASM-clean: no host-side dependencies beyond what graph/mod.rs
already imports.
Structs§
- Graph
View Id - Unique identifier for a graph-view pane (one projection of a graph; many graph-view panes can exist concurrently, each with its own camera / selection / filter state).
Type Aliases§
- EdgeKey
- Stable edge handle (petgraph EdgeIndex).
- Graph
Direction - Graph backend direction type exposed for adapter integration.
- Graph
Index - Graph backend index type exposed for adapter integration.
- NodeKey
- Stable node handle (petgraph NodeIndex — survives other deletions).