$graph
$graph : \GraphDS\Graph\Graph
Reference to the graph.
Class defining the multi-path version of Dijkstra's shortest path algorithm.
$graph : \GraphDS\Graph\Graph
Reference to the graph.
__construct(\GraphDS\Graph\Graph $graph)
Constructor for the multi-path version of Dijkstra algorithm.
| \GraphDS\Graph\Graph | $graph | The graph to which the multi-path Dijkstra algorithm should be applied |
run(mixed $start) : array
Calculates the shortest path to every vertex from vertex $start.
| mixed | $start | ID of the starting vertex for multi-path Dijkstra's algorithm |
Array holding the distances and previous vertices as calculated by Dijkstra's algorithm