SourceMap

Declared in lemon/maps.h, in the group Graph Maps; the same class on the Doxygen site.

template< typename GR >
class SourceMap

Map of the source nodes of arcs in a digraph.

SourceMap provides access for the source node of each arc in a digraph, which is returned by the source() function of the digraph.

See also

TargetMap

Template Parameters:

GR – The digraph type.

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 Functions

inline explicit SourceMap( const GR & digraph )

Constructor.

Parameters:

digraph – The digraph that the map belongs to.

inline Value operator[]( const Key & arc ) const

Returns the source node of the given arc.