PotentialDifferenceMap Class Template Reference
[Graph Maps]

#include <lemon/maps.h>

List of all members.


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.

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:

Generated on Tue May 5 07:41:58 2009 for LEMON by  doxygen 1.5.6