pub trait WithSuccessors: DirectedGraphwhere
Self: for<'graph> GraphSuccessors<'graph, Item = <Self as DirectedGraph>::Node>,{
// Required method
fn successors(
&self,
node: Self::Node
) -> <Self as GraphSuccessors<'_>>::Iter;
// Provided method
fn depth_first_search(&self, from: Self::Node) -> DepthFirstSearch<'_, Self> ⓘ
where Self: WithNumNodes { ... }
}