pub struct GraphTraversal<'a> { /* private fields */ }Expand description
Fluent API for graph traversal
Implementations§
Source§impl<'a> GraphTraversal<'a>
impl<'a> GraphTraversal<'a>
pub fn new(graph: &'a ISONGraph, start: NodeId) -> Self
Sourcepub fn hop(self, rel_type: Option<&str>, direction: Direction) -> Self
pub fn hop(self, rel_type: Option<&str>, direction: Direction) -> Self
Traverse one hop following edges
Sourcepub fn hops(
self,
n: usize,
rel_type: Option<&str>,
direction: Direction,
) -> Self
pub fn hops( self, n: usize, rel_type: Option<&str>, direction: Direction, ) -> Self
Traverse N hops
Sourcepub fn collect_nodes(self) -> Vec<Node>
pub fn collect_nodes(self) -> Vec<Node>
Return current nodes as Node objects
Auto Trait Implementations§
impl<'a> Freeze for GraphTraversal<'a>
impl<'a> RefUnwindSafe for GraphTraversal<'a>
impl<'a> Send for GraphTraversal<'a>
impl<'a> Sync for GraphTraversal<'a>
impl<'a> Unpin for GraphTraversal<'a>
impl<'a> UnsafeUnpin for GraphTraversal<'a>
impl<'a> UnwindSafe for GraphTraversal<'a>
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