pub trait GraphAlgorithm { type Node; type Weight; // Required method fn run(&self, start: Self::Node) -> Result<Vec<Self::Weight>, GraphError>; }
A trait for graph search algorithms.
Type of node.
Type of weight.
Run the graph algorithm.
start
Result containing a vector of shortest paths, or an error if applicable.