|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Matrix initialization functor for Floyd-Warshall. More...
#include <latex_floyd.H>
Public Types | |
| typedef AM::Graph_Type::Arc_Type | Arc_Type |
| typedef AM::Graph_Type | GT |
| typedef GT::Node | Node |
| typedef GT::Arc | Arc |
| typedef AM::Arc_Type::Distance_Type | Distance_Type |
Public Member Functions | |
| void | operator() (AM &mat, Node *src, Node *tgt, const long &i, const long &j, Distance_Type &entry, void *p) |
Matrix initialization functor for Floyd-Warshall.
Initializes the distance matrix with:
Compare; of two as light, the first one foundAlso initializes the path matrix for path reconstruction: path(i, j) is j on the diagonal and where there is an arc, and is left as it was elsewhere.
floyd_all_shortest_paths() and floyd_all_shortest_paths_latex() set the matrices in the same way, from one pass over the arcs instead of a search for each pair of nodes.
| AM | Adjacency matrix type |
| Compare | Comparison of distances; the lighter of two arcs is the one that it puts first (default: less) |
Definition at line 127 of file latex_floyd.H.
| typedef GT::Arc Aleph::Initialize_Dist< AM, Compare >::Arc |
Definition at line 135 of file latex_floyd.H.
| typedef AM::Graph_Type::Arc_Type Aleph::Initialize_Dist< AM, Compare >::Arc_Type |
Definition at line 129 of file latex_floyd.H.
| typedef AM::Arc_Type::Distance_Type Aleph::Initialize_Dist< AM, Compare >::Distance_Type |
Definition at line 137 of file latex_floyd.H.
| typedef AM::Graph_Type Aleph::Initialize_Dist< AM, Compare >::GT |
Definition at line 131 of file latex_floyd.H.
| typedef GT::Node Aleph::Initialize_Dist< AM, Compare >::Node |
Definition at line 133 of file latex_floyd.H.
|
inline |
Definition at line 139 of file latex_floyd.H.
References Aleph::and, GTArcCommon< ArcInfo >::get_info(), Aleph::Ady_Mat< GT, __Entry_Type, SA >::get_list_graph(), and GTNodeCommon< NodeInfo >::num_arcs.