pub trait VisitMap<N> {
// Required methods
fn visit(&mut self, a: N) -> bool;
fn is_visited(&self, a: &N) -> bool;
}
Expand description
A mapping for storing the visited status for NodeId N
.
Required Methods§
sourcefn visit(&mut self, a: N) -> bool
fn visit(&mut self, a: N) -> bool
Mark a
as visited.
Return true if this is the first visit, false otherwise.
sourcefn is_visited(&self, a: &N) -> bool
fn is_visited(&self, a: &N) -> bool
Return whether a
has been visited before.