pub struct TransactionGraphAccessor<T> { /* private fields */ }Expand description
A concrete implementation of GraphAccessor backed by a storage transaction.
This wraps a transaction reference and delegates to the actual graph traversal code.
Implementations§
Source§impl<T> TransactionGraphAccessor<T>
impl<T> TransactionGraphAccessor<T>
Trait Implementations§
Source§impl<T> GraphAccessor for TransactionGraphAccessor<T>
impl<T> GraphAccessor for TransactionGraphAccessor<T>
Source§fn neighbors(
&self,
node: EntityId,
direction: Direction,
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors( &self, node: EntityId, direction: Direction, ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors of a node in the specified direction. Read more
Source§fn neighbors_by_type(
&self,
node: EntityId,
direction: Direction,
edge_type: &EdgeType,
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors_by_type( &self, node: EntityId, direction: Direction, edge_type: &EdgeType, ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors filtered by edge type.
Source§fn neighbors_by_types(
&self,
node: EntityId,
direction: Direction,
edge_types: &[EdgeType],
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors_by_types( &self, node: EntityId, direction: Direction, edge_types: &[EdgeType], ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors filtered by multiple edge types.
Source§fn expand_all(
&self,
node: EntityId,
direction: Direction,
min_depth: usize,
max_depth: Option<usize>,
edge_types: Option<&[EdgeType]>,
) -> GraphAccessResult<Vec<TraversalResult>>
fn expand_all( &self, node: EntityId, direction: Direction, min_depth: usize, max_depth: Option<usize>, edge_types: Option<&[EdgeType]>, ) -> GraphAccessResult<Vec<TraversalResult>>
Perform multi-hop expansion from a node. Read more
Source§fn find_paths(
&self,
start: EntityId,
config: &PathFindConfig,
) -> GraphAccessResult<Vec<PathMatchResult>>
fn find_paths( &self, start: EntityId, config: &PathFindConfig, ) -> GraphAccessResult<Vec<PathMatchResult>>
Find paths matching a pattern from a starting node. Read more
Auto Trait Implementations§
impl<T> Freeze for TransactionGraphAccessor<T>where
T: Freeze,
impl<T> RefUnwindSafe for TransactionGraphAccessor<T>where
T: RefUnwindSafe,
impl<T> Send for TransactionGraphAccessor<T>where
T: Send,
impl<T> Sync for TransactionGraphAccessor<T>where
T: Sync,
impl<T> Unpin for TransactionGraphAccessor<T>where
T: Unpin,
impl<T> UnwindSafe for TransactionGraphAccessor<T>where
T: UnwindSafe,
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