#include <KShortestPaths.h>
|
| KShortestPaths (DirectedGraph graph, Vertex source, Vertex sink) |
|
MultiPredecessorMap | Run (size_t max_path_count) |
|
Class providing a k-shortest-paths algorithm implementation.
algo::KShortestPaths::KShortestPaths |
( |
DirectedGraph |
graph, |
|
|
Vertex |
source, |
|
|
Vertex |
sink |
|
) |
| |
Initializes the k-shortest-paths algorithm for the given graph. Uses the source vertex as starting and the sink vertex as target vertex.
- Parameters
-
graph | The graph to work with |
source | The starting vertex |
sink | The target vertex |
MultiPredecessorMap algo::KShortestPaths::Run |
( |
size_t |
max_path_count | ) |
|
Runs the algorithm to find the given number of shortest paths. The actual number of paths found is the number of entries in the MultiPredecessorMap with the sink vertex as the key.
- Parameters
-
max_path_count | The maximum number of paths to find |
The documentation for this class was generated from the following files: