Skip to main content

Module identity

Module identity 

Source
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 for Uuid, Point2D<f32>, and Vector2D<f32> — bridge types between rkyv’s primitive archive shape and the actual field types used in Node/Edge/etc.

WASM-clean: no host-side dependencies beyond what graph/mod.rs already imports.

Structs§

GraphViewId
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).
ResourceEdgeKey
A resource edge handle. Its raw index never crosses into surface APIs.

Enums§

RelationKey
An edge handle together with its owning graph stratum.

Type Aliases§

EdgeKey
Stable surface edge handle (petgraph EdgeIndex).
GraphDirection
Graph backend direction type exposed for adapter integration.
GraphIndex
Graph backend index type exposed for adapter integration.
NodeKey
Compatibility name for a stable surface handle.
SurfaceNodeKey
Stable surface handle (petgraph NodeIndex — survives other deletions).