Defined in File AStar.hpp
public NetworKit::STSP
(Class STSP)
Public Functions
Creates the AStarGeneral class for the graph G, the source node source, and the target node target using a template parameter as heuristic function.
G – The graph.
distanceHeu – Vector with a lower bound of the distance from every node to the target.
source – The source node.
target – The target node.
storePred – If true, the algorithm will also store the predecessors and reconstruct a shortest path from source and target.
The generic run method which calls runImpl() and takes care of setting hasRun to the appropriate value.
Returns a shortest path from the source node to the target node (without including them). Note: the shortest path can be constructed only if the algorithm is executed with storePred set to true.
A shortest path from the source to target.