Skip to main content

Module graph

Module graph 

Source
Expand description

HNSW graph structure — nodes, parameters, core index operations.

Production implementation per Malkov & Yashunin (2018). FP32 construction for structural integrity; heuristic neighbor selection.

Re-exports§

pub use index::HnswIndex;
pub use types::Candidate;
pub use types::Node;
pub use types::NodeStorage;
pub use types::SearchResult;
pub use types::Xorshift64;

Modules§

index
types

Structs§

HnswParams
HNSW index parameters shared between Origin and Lite.

Constants§

MAX_LAYER_CAP
Hard cap on the layer assigned to any node during insertion. Standard HNSW practice — prevents pathological RNG draws from inflating max_layer and slowing every subsequent search.