|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Path reconstruction from Floyd-Warshall path matrices. More...
#include <tpl_matgraph.H>Go to the source code of this file.
Classes | |
| class | Aleph::Find_Min_Path< Mat > |
| Functor wrapper for find_min_path. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Functions | |
| template<class Mat > | |
| void | Aleph::find_min_path (Mat &p, const long src_index, const long tgt_index, Path< typename Mat::Graph_Type > &path) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Variant that accepts const indices. | |
| template<class Mat > | |
| void | Aleph::find_min_path (Mat &p, typename Mat::Node *src_node, typename Mat::Node *tgt_node, Path< typename Mat::Graph_Type > &path) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reconstruct shortest path from path matrix using node pointers. | |
Path reconstruction from Floyd-Warshall path matrices.
This file provides utilities for reconstructing minimum paths from the path matrix computed by the Floyd-Warshall all-pairs shortest path algorithm.
After running Floyd-Warshall (see latex_floyd.H or Floyd_Warshall.H), you obtain two matrices:
This file provides find_min_path() to reconstruct the actual path from the path matrix.
For a path from node i to node j:
path(i, j) contains the index of the next node after i on the shortest pathDefinition in file mat_path.H.