Back to Arangodb

astar_heuristic<Graph, CostType>

3rdParty/boost/1.78.0/libs/graph/doc/astar_heuristic.html

3.12.9.11.2 KB
Original Source

astar_heuristic<Graph, CostType>

This class is a default implementation of the AStarHeuristic concept. It implements a "zero" heuristic -- a heuristic function that returns a cost of zero regardless of the vertex it is passed.

Model of

AStarHeuristic

Template Parameters

ParameterDescriptionDefault
GraphThe type of the graph being searched.
CostTypeA type that can be used with the compare and combine functions passed to A*. Typically an integer or floating point type.

Where Defined

boost/graph/astar_search.hpp

Member Functions

This class implements the single member function required by AStarHeuristic:

FunctionDescription
CostType operator()(graph_traits<Graph>::vertex_descriptor u);Called for the target of every out edge of a vertex being examined. Returns the cost, estimated by the heuristic, from vertex u to a goal.

| Copyright © 2004 | Kristopher Beevers, Rensselaer Polytechnic Institute ([email protected]) |