pub struct ForwardNeighborStrategy;
Expand description
A neighbor strategy that traverses all outgoing edges of a node.
Trait Implementations§
source§impl<'a, Graph: NavigableGraph<'a> + ImmutableGraphContainer> TraversalNeighborStrategy<'a, Graph> for ForwardNeighborStrategy
impl<'a, Graph: NavigableGraph<'a> + ImmutableGraphContainer> TraversalNeighborStrategy<'a, Graph> for ForwardNeighborStrategy
§type Iterator = <Graph as NavigableGraph<'a>>::OutNeighbors
type Iterator = <Graph as NavigableGraph<'a>>::OutNeighbors
The iterator type used to iterate over the neighbors of a node.
§type EdgeNeighborIterator = Once<<Graph as GraphBase>::NodeIndex>
type EdgeNeighborIterator = Once<<Graph as GraphBase>::NodeIndex>
The iterator type used to iterate over the neighbors of an edge.
source§fn neighbor_iterator(graph: &'a Graph, node: Graph::NodeIndex) -> Self::Iterator
fn neighbor_iterator(graph: &'a Graph, node: Graph::NodeIndex) -> Self::Iterator
Returns an iterator over the neighbors of a given node.
source§fn edge_neighbor_iterator(
graph: &'a Graph,
edge: Graph::EdgeIndex
) -> Self::EdgeNeighborIterator
fn edge_neighbor_iterator( graph: &'a Graph, edge: Graph::EdgeIndex ) -> Self::EdgeNeighborIterator
Returns an iterator over the neighbors of an edge.
Auto Trait Implementations§
impl RefUnwindSafe for ForwardNeighborStrategy
impl Send for ForwardNeighborStrategy
impl Sync for ForwardNeighborStrategy
impl Unpin for ForwardNeighborStrategy
impl UnwindSafe for ForwardNeighborStrategy
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