pub fn start_directed<'a, G, D, W, H>(
    g: &'a G,
    src: G::Node<'a>,
    weights: W,
    heur: H
) -> AStarDefault<'a, OutEdges<'a, G>, D, W, H>where
    G: Digraph,
    G::Node<'a>: Hash,
    D: Copy + PartialOrd + Zero,
    W: Fn(G::Edge<'a>) -> D,
    H: AStarHeuristic<G::Node<'a>>,
    H::Result: Add<D, Output = D>,
Expand description

Start an A*-search on a directed graph.

This is a convenience wrapper to start the search on an directed graph with the default data structures.

Parameter

  • g: the graph
  • weights: the (non-negative) edge weights
  • src: the source node
  • heur: the lower bound heuristic