Trait lance_index::vector::graph::Graph
source · pub trait Graph {
// Required methods
fn len(&self) -> usize;
fn neighbors(&self, key: u32) -> Option<Box<dyn Iterator<Item = u32> + '_>>;
fn storage(&self) -> Arc<dyn VectorStorage>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Required Methods§
sourcefn neighbors(&self, key: u32) -> Option<Box<dyn Iterator<Item = u32> + '_>>
fn neighbors(&self, key: u32) -> Option<Box<dyn Iterator<Item = u32> + '_>>
Get the neighbors of a graph node, identifyied by the index.
sourcefn storage(&self) -> Arc<dyn VectorStorage>
fn storage(&self) -> Arc<dyn VectorStorage>
Access to underline storage