pub struct NativeGraphBackend { /* private fields */ }Expand description
Native backend implementation using interior mutability
Implementations§
Trait Implementations§
Source§impl GraphBackend for NativeGraphBackend
impl GraphBackend for NativeGraphBackend
fn insert_node(&self, node: NodeSpec) -> Result<i64, SqliteGraphError>
fn get_node(&self, id: i64) -> Result<GraphEntity, SqliteGraphError>
fn insert_edge(&self, edge: EdgeSpec) -> Result<i64, SqliteGraphError>
fn neighbors( &self, node: i64, query: NeighborQuery, ) -> Result<Vec<i64>, SqliteGraphError>
fn bfs(&self, start: i64, depth: u32) -> Result<Vec<i64>, SqliteGraphError>
fn shortest_path( &self, start: i64, end: i64, ) -> Result<Option<Vec<i64>>, SqliteGraphError>
fn node_degree(&self, node: i64) -> Result<(usize, usize), SqliteGraphError>
fn k_hop( &self, start: i64, depth: u32, direction: BackendDirection, ) -> Result<Vec<i64>, SqliteGraphError>
fn k_hop_filtered( &self, start: i64, depth: u32, direction: BackendDirection, allowed_edge_types: &[&str], ) -> Result<Vec<i64>, SqliteGraphError>
fn chain_query( &self, start: i64, chain: &[ChainStep], ) -> Result<Vec<i64>, SqliteGraphError>
fn pattern_search( &self, start: i64, pattern: &PatternQuery, ) -> Result<Vec<PatternMatch>, SqliteGraphError>
Auto Trait Implementations§
impl !Freeze for NativeGraphBackend
impl !RefUnwindSafe for NativeGraphBackend
impl Send for NativeGraphBackend
impl Sync for NativeGraphBackend
impl Unpin for NativeGraphBackend
impl UnwindSafe for NativeGraphBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more