pub trait GraphAlgorithm {
type Node;
type Weight;
// Required method
fn run(&self, start: Option<Self::Node>) -> Result<Self::Weight, GraphError>;
}
Expand description
A trait for graph search algorithms.
pub trait GraphAlgorithm {
type Node;
type Weight;
// Required method
fn run(&self, start: Option<Self::Node>) -> Result<Self::Weight, GraphError>;
}
A trait for graph search algorithms.