Struct rs_graph::linkedlistgraph::LinkedListGraph
source · pub struct LinkedListGraph<ID = u32> { /* private fields */ }
Expand description
The linked list based graph data structure.
Implementations
sourceimpl<ID> LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
impl<ID> LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
pub fn new() -> LinkedListGraph<ID>
Trait Implementations
sourceimpl<ID> Buildable for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
impl<ID> Buildable for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
type Builder = LinkedListGraph<ID>
sourceimpl<ID> Builder for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
impl<ID> Builder for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
sourceimpl<ID> Default for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
impl<ID> Default for LinkedListGraph<ID>where
ID: PrimInt + Unsigned,
sourceimpl<'a, ID> Digraph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
impl<'a, ID> Digraph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
type OutEdgeIter = OutEdgeIter<'a, ID>
type OutEdgeIter = OutEdgeIter<'a, ID>
Type of an iterator over the forward edges leaving a node.
type InEdgeIter = InEdgeIter<'a, ID>
type InEdgeIter = InEdgeIter<'a, ID>
Type of an iterator over the backward edges entering a node.
sourcefn outedges(&'a self, u: Self::Node) -> Self::OutEdgeIter
fn outedges(&'a self, u: Self::Node) -> Self::OutEdgeIter
Return an iterator over the outgoing edges of a node. Read more
sourcefn inedges(&'a self, u: Self::Node) -> Self::InEdgeIter
fn inedges(&'a self, u: Self::Node) -> Self::InEdgeIter
Return an iterator over the incoming edges of a node. Read more
sourceimpl<'a, ID> Graph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
impl<'a, ID> Graph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
sourceimpl<'a, ID> IndexGraph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
impl<'a, ID> IndexGraph<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
sourceimpl<'a, ID> IndexNetwork<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
impl<'a, ID> IndexNetwork<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
sourceimpl<'a, ID> Network<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
impl<'a, ID> Network<'a> for LinkedListGraph<ID>where
ID: 'a + PrimInt + Unsigned,
sourcefn is_reverse(&self, e: Self::Edge, f: Self::Edge) -> bool
fn is_reverse(&self, e: Self::Edge, f: Self::Edge) -> bool
Return true if e is the reverse edge of f.
sourcefn is_forward(&self, e: Self::Edge) -> bool
fn is_forward(&self, e: Self::Edge) -> bool
Return true if e is a forward edge.
sourcefn is_backward(&self, e: Self::Edge) -> bool
fn is_backward(&self, e: Self::Edge) -> bool
Return true if e is a backward edge.
Auto Trait Implementations
impl<ID> RefUnwindSafe for LinkedListGraph<ID>where
ID: RefUnwindSafe,
impl<ID> Send for LinkedListGraph<ID>where
ID: Send,
impl<ID> Sync for LinkedListGraph<ID>where
ID: Sync,
impl<ID> Unpin for LinkedListGraph<ID>where
ID: Unpin,
impl<ID> UnwindSafe for LinkedListGraph<ID>where
ID: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more