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