Trait petgraph::visit::Visitable
[−]
[src]
pub trait Visitable: GraphBase { type Map: VisitMap<Self::NodeId>; fn visit_map(&self) -> Self::Map; fn reset_map(&self, &mut Self::Map); }
A graph that can create a map that tracks the visited status of its nodes.
Associated Types
Required Methods
fn visit_map(&self) -> Self::Map
Create a new visitor map
fn reset_map(&self, &mut Self::Map)
Reset the visitor map (and resize to new size of graph if needed)