Bidirectional Dijkstra algorithm implementation. More...
#include <bidirectionalDijkstra.h>
Public Member Functions | |
BidirectionalDijkstra (GraphType &graph, unsigned int *timestamp) | |
Constructor. | |
WeightType | runQuery (const typename GraphType::NodeIterator &s, const typename GraphType::NodeIterator &t) |
Runs a shortest path query between a source node s and a target node t. |
Bidirectional Dijkstra algorithm implementation.
This class supports running queries between source and target nodes by building two search trees, one starting at the source node and one ending at the target node.
GraphType | The type of the graph to run the algorithm on |
BidirectionalDijkstra< GraphType >::BidirectionalDijkstra | ( | GraphType & | graph, | |
unsigned int * | timestamp | |||
) | [inline] |
Constructor.
graph | The graph to run the algorithm on | |
timestamp | An address containing a timestamp. A timestamp must be given in order to check whether a node is visited or not |
WeightType BidirectionalDijkstra< GraphType >::runQuery | ( | const typename GraphType::NodeIterator & | s, | |
const typename GraphType::NodeIterator & | t | |||
) | [inline] |
Runs a shortest path query between a source node s and a target node t.
s | The source node | |
t | The target node |