Public Types | Public Member Functions | Related Functions

SourceMap< GR > Class Template Reference


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:
GRThe 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:
digraphThe digraph that the map belongs to.

Member Function Documentation

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

Returns the source node of the given arc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines