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. More... | |
Value | operator[] (const Key &arc) const |
Returns the source node of the given arc. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename GR > | |
SourceMap< GR > | sourceMap (const GR &graph) |
Returns a SourceMap class. More... | |
|
inlineexplicit |
Constructor.
digraph | The digraph that the map belongs to. |