PotentialDifferenceMap returns the difference between the potentials of the source and target nodes of each arc in a digraph, i.e. it returns
| GR | The digraph type. |
| POT | A node map storing the potentials. |
#include <lemon/maps.h>
Public Types | |
| typedef GR::Arc | Key |
| Key type. | |
| typedef POT::Value | Value |
| Value type. | |
Public Member Functions | |
| PotentialDifferenceMap (const GR &gr, const POT &potential) | |
| Constructor. More... | |
| Value | operator[] (const Key &arc) const |
| Returns the potential difference for the given arc. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename GR , typename POT > | |
| PotentialDifferenceMap< GR, POT > | potentialDifferenceMap (const GR &gr, const POT &potential) |
| Returns a PotentialDifferenceMap. More... | |
|
inlineexplicit |
Contructor of the map.
1.8.5