pub struct Graph<N, E> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<N: NodeTrait, E: EdgeTrait> GraphViewTrait<N, E> for Graph<N, E>
impl<N: NodeTrait, E: EdgeTrait> GraphViewTrait<N, E> for Graph<N, E>
fn is_empty(&self) -> bool
fn has_sequential_keys(&self) -> bool
fn get_node(&self, key: u32) -> &N
fn has_node(&self, key: u32) -> bool
fn get_edge(&self, source: u32, target: u32) -> &E
fn has_edge(&self, source: u32, target: u32) -> bool
fn get_nodes<'a>(&'a self) -> impl Iterator<Item = &'a N>where
N: 'a,
fn get_node_keys(&self) -> impl Iterator<Item = u32>
fn get_edges<'a>(&'a self) -> impl Iterator<Item = &'a E>where
E: 'a,
fn get_predecessors<'a>(&'a self, node_key: u32) -> impl Iterator<Item = &'a N>where
N: 'a,
fn get_predecessors_keys(&self, node_key: u32) -> impl Iterator<Item = u32>
fn get_successors<'a>(&'a self, node_key: u32) -> impl Iterator<Item = &'a N>where
N: 'a,
fn get_successors_keys(&self, node_key: u32) -> impl Iterator<Item = u32>
fn filter(&self, node_keys: &[u32]) -> impl GraphViewTrait<N, E>
Auto Trait Implementations§
impl<N, E> Freeze for Graph<N, E>
impl<N, E> RefUnwindSafe for Graph<N, E>where
N: RefUnwindSafe,
E: RefUnwindSafe,
impl<N, E> Send for Graph<N, E>
impl<N, E> Sync for Graph<N, E>
impl<N, E> Unpin for Graph<N, E>
impl<N, E> UnwindSafe for Graph<N, E>where
N: UnwindSafe,
E: 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