Search

Trait Search 

Source
pub trait Search<N> {
    type Output;

    // Required method
    fn search(&mut self, start: N) -> Result<Self::Output>;
}
Expand description

The Search establishes a common interface for operators on hypergraphs capable of performing a search.

Required Associated Types§

Required Methods§

Source

fn search(&mut self, start: N) -> Result<Self::Output>

begins a search of the graph, starting with the given index.

Implementors§

Source§

impl<'a, N, E, A, H> Search<IndexBase<<A as GraphProps>::Ix>> for Dijkstra<'a, N, E, A, H>

Source§

impl<'a, N, E, A, H, S> Search<IndexBase<<A as GraphProps>::Ix>> for BreadthFirstTraversal<'a, N, E, A, H, S>
where A: GraphProps, H: HyperGraph<N, E, A>, S: BuildHasher, A::Ix: HyperIndex, for<'b> &'b <H::Edge<E> as RawLayout>::Store: IntoIterator<Item = &'b VertexId<A::Ix>>,

Source§

impl<'a, N, E, A, H, S> Search<IndexBase<<A as GraphProps>::Ix>> for DepthFirstTraversal<'a, N, E, A, H, S>
where A: GraphProps, H: HyperGraph<N, E, A>, S: BuildHasher, A::Ix: HyperIndex, for<'b> &'b <H::Edge<E> as RawLayout>::Store: IntoIterator<Item = &'b VertexId<A::Ix>>,

Source§

impl<'a, N, E, F, A, H, S> Search<IndexBase<<A as GraphProps>::Ix>> for AStarSearch<'a, N, E, A, F, H, S>
where A: GraphProps, F: Heuristic<A::Ix, Output = f64>, H: HyperGraphIter<N, E, A>, S: BuildHasher, A::Ix: HyperIndex, for<'b> &'b <H::Edge<E> as RawLayout>::Store: IntoIterator<Item = &'b VertexId<A::Ix>>,