pub trait PathFinder<Idx> {
type Path;
// Required methods
fn find_path(
&mut self,
from: VertexId<Idx>,
to: VertexId<Idx>,
) -> Result<Self::Path>;
fn reconstruct_path(&self, tgt: VertexId<Idx>) -> Self::Path;
}
Expand description
The PathFinder
establishes an interface for path-finding operators on hypergraphs. Each
implementor will provide a particular algorithm for finding paths between any two vertices
in a hypergraph.
Required Associated Types§
Required Methods§
Sourcefn find_path(
&mut self,
from: VertexId<Idx>,
to: VertexId<Idx>,
) -> Result<Self::Path>
fn find_path( &mut self, from: VertexId<Idx>, to: VertexId<Idx>, ) -> Result<Self::Path>
returns a