The main purpose of this concept is that the shortest path algorithms can enumerate easily the edges in reverse order. If we would like to give back a real path from these algorithms then we should create a temporarly path object. In Lemon such algorithms gives back a path dumper what can assigned to a real path and the dumpers can be implemented as an adaptor class to the predecessor map.
_Graph | The graph type in which the path is. |
#include <lemon/concepts/path.h>
Classes | |
class | EdgeIt |
Lemon style iterator for path edges. More... | |
class | RevEdgeIt |
Lemon style iterator for path edges. More... | |
Public Types | |
typedef _Graph | Graph |
Type of the underlying graph. | |
typedef Graph::Edge | Edge |
Edge type of the underlying graph. | |
typedef False | RevPathTag |
Forward or reverse dumping. | |
Public Member Functions | |
int | length () const |
Length of the path ie. the number of edges in the path. | |
bool | empty () const |
Returns whether the path is empty. |
typedef False RevPathTag |