pub struct InMemoryGraph { /* private fields */ }Implementations§
Source§impl InMemoryGraph
impl InMemoryGraph
pub fn new() -> Self
pub fn add_edge(&mut self, edge: Edge)
pub fn from_edges(edges: Vec<Edge>) -> Self
pub fn bfs( &self, start: &str, direction: Direction, max_depth: usize, ) -> Vec<TraversalResult>
pub fn bfs_filtered( &self, start: &str, direction: Direction, max_depth: usize, min_confidence: Confidence, ) -> Vec<TraversalResult>
pub fn dfs(&self, start: &str, direction: Direction) -> Vec<TraversalResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InMemoryGraph
impl RefUnwindSafe for InMemoryGraph
impl Send for InMemoryGraph
impl Sync for InMemoryGraph
impl Unpin for InMemoryGraph
impl UnsafeUnpin for InMemoryGraph
impl UnwindSafe for InMemoryGraph
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