diff -r e997802b855c -r 87f7c54892df src/lemon/min_cost_flow.h --- a/src/lemon/min_cost_flow.h Sat Nov 13 12:53:28 2004 +0000 +++ b/src/lemon/min_cost_flow.h Sat Nov 13 17:07:10 2004 +0000 @@ -59,10 +59,10 @@ template class MinCostFlow { - typedef typename LengthMap::ValueType Length; + typedef typename LengthMap::Value Length; //Warning: this should be integer type - typedef typename CapacityMap::ValueType Capacity; + typedef typename CapacityMap::Value Capacity; typedef typename Graph::Node Node; typedef typename Graph::NodeIt NodeIt; @@ -94,14 +94,14 @@ const LengthMap &length; const NodeMap &pot; public : - typedef typename LengthMap::KeyType KeyType; - typedef typename LengthMap::ValueType ValueType; + typedef typename LengthMap::Key Key; + typedef typename LengthMap::Value Value; ModLengthMap(const ResGW& _g, const LengthMap &_length, const NodeMap &_pot) : g(_g), /*rev(_rev),*/ length(_length), pot(_pot) { } - ValueType operator[](typename ResGW::Edge e) const { + Value operator[](typename ResGW::Edge e) const { if (g.forward(e)) return length[e]-(pot[g.target(e)]-pot[g.source(e)]); else