PotentialDifferenceMap Class Template Reference
[Graph Maps]


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:

Generated on Sun Dec 7 10:49:57 2008 for LEMON by  doxygen 1.5.7.1