LEMON 1.0.7
Public Member Functions | Related Functions

PotentialDifferenceMap< Digraph, NodeMap > Class Template Reference


Detailed Description

template<typename Digraph, typename NodeMap>
class lemon::PotentialDifferenceMap< Digraph, NodeMap >

If there is an potential map on the nodes then we can get an arc map as we get the substraction of the values of the target and source.

#include <lemon/maps.h>

List of all members.

Public Member Functions

 PotentialDifferenceMap (const Digraph &digraph, const NodeMap &potential)
 Constructor.
Value operator[] (const Key &arc) const
 Const subscription operator.

Related Functions

(Note that these are not member functions.)
template<typename Digraph , typename NodeMap >
PotentialDifferenceMap
< Digraph, NodeMap > 
potentialDifferenceMap (const Digraph &digraph, const NodeMap &potential)
 Returns a PotentialDifferenceMap.

Constructor & Destructor Documentation

PotentialDifferenceMap ( const Digraph &  digraph,
const NodeMap &  potential 
) [inline, explicit]

Contructor of the map


Member Function Documentation

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

Const subscription operator


The documentation for this class was generated from the following file: