Trait swh_graph::graph::SwhForwardGraph
source · pub trait SwhForwardGraph: SwhGraph {
type Successors<'succ>: IntoIterator<Item = usize>
where Self: 'succ;
// Required methods
fn successors(&self, node_id: NodeId) -> Self::Successors<'_>;
fn outdegree(&self, node_id: NodeId) -> usize;
}
Required Associated Types§
type Successors<'succ>: IntoIterator<Item = usize> where Self: 'succ
Required Methods§
sourcefn successors(&self, node_id: NodeId) -> Self::Successors<'_>
fn successors(&self, node_id: NodeId) -> Self::Successors<'_>
Return an IntoIterator
over the successors of a node.
Object Safety§
This trait is not object safe.