abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
TargetMap< GR > Class Template Reference

Map of the target nodes of arcs in a digraph. More...

#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

 TargetMap (const GR &digraph)
 Constructor.
Value operator[] (const Key &e) const
 Returns the target node of the given arc.

(Note that these are not member symbols.)

template< typename GR >
TargetMap< GR > targetMap (const GR &graph)
 Returns a TargetMap class.

Detailed Description

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

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

Template Parameters
GRThe digraph type.
See also
SourceMap

Constructor & Destructor Documentation

◆ TargetMap()

template< typename GR >
TargetMap ( const GR & digraph)
inlineexplicit

Constructor.

Parameters
digraphThe digraph that the map belongs to.

Member Function Documentation

◆ operator[]()

template< typename GR >
Value operator[] ( const Key & e) const
inline

Returns the target node of the given arc.