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