pub trait GetShortestPath {
// Required method
fn get_shortest_path(
&mut self,
src: NodeId,
dst: NodeId,
) -> Result<Vec<NodeId>, BetweennessCentralityError>;
}Required Methods§
fn get_shortest_path( &mut self, src: NodeId, dst: NodeId, ) -> Result<Vec<NodeId>, BetweennessCentralityError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".