Trait swh_graph::graph::SwhLabeledForwardGraph
source · pub trait SwhLabeledForwardGraph: SwhForwardGraph {
type LabeledArcs<'arc>: IntoIterator<Item = UntypedEdgeLabel>
where Self: 'arc;
type LabeledSuccessors<'node>: IntoIterator<Item = (usize, Self::LabeledArcs<'node>)> + IntoFlattenedLabeledArcsIterator<UntypedEdgeLabel>
where Self: 'node;
// Required method
fn untyped_labeled_successors(
&self,
node_id: NodeId,
) -> Self::LabeledSuccessors<'_>;
// Provided method
fn labeled_successors(
&self,
node_id: NodeId,
) -> impl Iterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel>
where Self: SwhGraphWithProperties + Sized,
<Self as SwhGraphWithProperties>::Maps: Maps { ... }
}
Required Associated Types§
type LabeledArcs<'arc>: IntoIterator<Item = UntypedEdgeLabel> where Self: 'arc
type LabeledSuccessors<'node>: IntoIterator<Item = (usize, Self::LabeledArcs<'node>)> + IntoFlattenedLabeledArcsIterator<UntypedEdgeLabel> where Self: 'node
Required Methods§
sourcefn untyped_labeled_successors(
&self,
node_id: NodeId,
) -> Self::LabeledSuccessors<'_>
fn untyped_labeled_successors( &self, node_id: NodeId, ) -> Self::LabeledSuccessors<'_>
Return an IntoIterator
over the successors of a node along with a list of labels
of each arc
Provided Methods§
sourcefn labeled_successors(
&self,
node_id: NodeId,
) -> impl Iterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel>
fn labeled_successors( &self, node_id: NodeId, ) -> impl Iterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel>
Return an IntoIterator
over the successors of a node along with a list of labels
of each arc
Object Safety§
This trait is not object safe.