SourceMap provides access for the source node of each arc in a digraph, which is returned by the source()
function of the digraph.
GR | The digraph type. |
#include <lemon/maps.h>
Public Types | |
typedef GR::Arc | Key |
The key type (the Arc type of the digraph). | |
typedef GR::Node | Value |
The value type (the Node type of the digraph). | |
Public Member Functions | |
SourceMap (const GR &digraph) | |
Constructor. | |
Value | operator[] (const Key &arc) const |
Related Functions | |
(Note that these are not member functions.) | |
template<typename GR > | |
SourceMap< GR > | sourceMap (const GR &graph) |
Returns a SourceMap class. |
SourceMap | ( | const GR & | digraph | ) | [inline, explicit] |
Constructor.
digraph | The digraph that the map belongs to. |