Skip to main content

GraphNeighborLookup

Trait GraphNeighborLookup 

Source
pub trait GraphNeighborLookup: Send + Sync {
    // Required method
    fn neighbors(
        &self,
        vertex: u64,
        label: &str,
        direction: Direction,
    ) -> StorageBackendResult<Vec<u64>>;
}
Expand description

Minimal trait capturing the only graph operation deep-fusion’s graph layers need: enumerate the neighbors of a vertex along a label in a chosen direction.

An empty label is the explicit wildcard and must enumerate neighbors across every edge label. This lets IR nodes represent an omitted edge label without inventing a separate sentinel at each engine boundary.

Required Methods§

Source

fn neighbors( &self, vertex: u64, label: &str, direction: Direction, ) -> StorageBackendResult<Vec<u64>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§