1.1 --- a/lemon/cost_scaling.h Fri Nov 13 00:24:39 2009 +0100
1.2 +++ b/lemon/cost_scaling.h Fri Nov 13 00:37:55 2009 +0100
1.3 @@ -205,12 +205,12 @@
1.4 private:
1.5
1.6 template <typename KT, typename VT>
1.7 - class VectorMap {
1.8 + class StaticVectorMap {
1.9 public:
1.10 typedef KT Key;
1.11 typedef VT Value;
1.12
1.13 - VectorMap(std::vector<Value>& v) : _v(v) {}
1.14 + StaticVectorMap(std::vector<Value>& v) : _v(v) {}
1.15
1.16 const Value& operator[](const Key& key) const {
1.17 return _v[StaticDigraph::id(key)];
1.18 @@ -228,8 +228,8 @@
1.19 std::vector<Value>& _v;
1.20 };
1.21
1.22 - typedef VectorMap<StaticDigraph::Node, LargeCost> LargeCostNodeMap;
1.23 - typedef VectorMap<StaticDigraph::Arc, LargeCost> LargeCostArcMap;
1.24 + typedef StaticVectorMap<StaticDigraph::Node, LargeCost> LargeCostNodeMap;
1.25 + typedef StaticVectorMap<StaticDigraph::Arc, LargeCost> LargeCostArcMap;
1.26
1.27 private:
1.28