pub trait FiniteDigraph: FiniteGraph {
// Required methods
fn src(&self, e: Self::Edge<'_>) -> Self::Node<'_>;
fn snk(&self, e: Self::Edge<'_>) -> Self::Node<'_>;
}
Expand description
A (finite) directed graph with a known number of nodes and edges.
For each edge the source and the sink node may be returned.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.