Struct petgraph::visit::AsUndirected
[−]
[src]
pub struct AsUndirected<G>(pub G);
Wrapper type for walking the graph as if it is undirected
Trait Implementations
impl<G: Copy> Copy for AsUndirected<G>
[src]
impl<G: Clone> Clone for AsUndirected<G>
[src]
fn clone(&self) -> AsUndirected<G>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'b, N, E, Ty, Ix> IntoNeighbors for AsUndirected<&'b Graph<N, E, Ty, Ix>> where Ty: EdgeType, Ix: IndexType
[src]
type Neighbors = Neighbors<'b, E, Ix>
fn neighbors(self, n: NodeIndex<Ix>) -> Neighbors<'b, E, Ix>
Return an iterator of the neighbors of node a
.