_Graph | Graph type. | |
_LegthMap | Type of length map. |
#include <lemon/bellman_ford.h>
Public Types | |
typedef _Graph | Graph |
The graph type the algorithm runs on. | |
typedef _LengthMap | LengthMap |
The type of the map that stores the edge lengths. | |
typedef BellmanFordDefaultOperationTraits < Value > | OperationTraits |
Operation traits for Bellman-Ford algorithm. | |
typedef Graph::template NodeMap< typename _Graph::Edge > | PredMap |
The type of the map that stores the last edges of the shortest paths. | |
typedef Graph::template NodeMap< typename _LengthMap::Value > | DistMap |
The type of the map that stores the dists of the nodes. | |
Static Public Member Functions | |
static PredMap * | createPredMap (const _Graph &graph) |
Instantiates a PredMap. | |
static DistMap * | createDistMap (const _Graph &graph) |
Instantiates a DistMap. |
typedef _LengthMap LengthMap |
The type of the map that stores the edge lengths. It must meet the ReadMap concept.
typedef BellmanFordDefaultOperationTraits<Value> OperationTraits |
It defines the infinity type on the given Value type and the used operation.
typedef Graph::template NodeMap<typename _Graph::Edge> PredMap |
The type of the map that stores the last edges of the shortest paths. It must meet the WriteMap concept.
typedef Graph::template NodeMap<typename _LengthMap::Value> DistMap |
The type of the map that stores the dists of the nodes. It must meet the WriteMap concept.
static PredMap* createPredMap | ( | const _Graph & | graph | ) | [inline, static] |
This function instantiates a PredMap.
graph | is the graph, to which we would like to define the PredMap. |
static DistMap* createDistMap | ( | const _Graph & | graph | ) | [inline, static] |