pub trait DynamicGraph {
type Vertex: Clone + Hash + Eq;
type Cost: Cost;
// Required methods
fn successors(
&self,
vertex: &Self::Vertex,
emit: impl FnMut(Self::Vertex, Self::Cost),
);
fn predecessors(
&self,
vertex: &Self::Vertex,
emit: impl FnMut(Self::Vertex, Self::Cost),
);
}Expand description
A graph with stable vertices whose edge costs may change between searches.
Both directions must agree and reflect the current costs: to is reported as a
successor of from with cost c exactly when from is reported as a predecessor of
to with cost c.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".