pub trait EdgeGraph: Graph {
type Edge: Clone + Ord;
// Required method
fn edges(
&self,
state: &Self::State,
out: &mut Vec<(Self::Edge, Self::State, Self::Weight)>,
);
}Expand description
A Graph whose edges have identities, for problems that must tell
parallel edges apart: disjoint and dissimilar paths.
An additive extension: graphs that only implement Graph keep working
with every other search. edges must report the same edges as
Graph::successors, each with an identity unique in the graph.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".