SourceMap< GR > Class Template Reference
[Graph Maps]


Detailed Description

template<typename GR>
class lemon::SourceMap< GR >

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

Template Parameters:
GR The digraph type.
See also:
TargetMap

#include <lemon/maps.h>

List of all members.

Public Types

typedef GR::Arc Key
 
typedef GR::Node Value
 

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.

Constructor & Destructor Documentation

SourceMap ( const GR &  digraph  )  [inline, explicit]

Constructor.

Parameters:
digraph The digraph that the map belongs to.

Member Function Documentation

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

Returns the source node of the given arc.


Generated on Sat Oct 3 07:24:24 2009 for LEMON by  doxygen 1.6.1