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<'a, 'b, N, E, Ty, Ix> NeighborIter<'a> for AsUndirected<&'b Graph<N, E, Ty, Ix>> where Ty: EdgeType, Ix: IndexType

type Iter = Neighbors<'a, E, Ix>

fn neighbors(&'a self, n: NodeIndex<Ix>) -> Neighbors<'a, E, Ix>

impl<'a, V: Graphlike> Graphlike for AsUndirected<&'a V>

type NodeId = V

impl<'a, V: Visitable> Visitable for AsUndirected<&'a V>

type Map = V

fn visit_map(&self) -> V