lemon/adaptors.h
changeset 516 dab9e610e37d
parent 512 9b9ffe7d9b75
child 519 c786cd201266
     1.1 --- a/lemon/adaptors.h	Mon Feb 16 18:15:52 2009 +0000
     1.2 +++ b/lemon/adaptors.h	Fri Feb 20 18:43:34 2009 +0100
     1.3 @@ -3195,25 +3195,25 @@
     1.4  
     1.5        void set(const Arc& key, const V& val) {
     1.6          if (SplitNodesBase<DGR>::origArc(key)) {
     1.7 -          _arc_map.set(key._item.first(), val);
     1.8 +          _arc_map.set(static_cast<const DigraphArc&>(key), val);
     1.9          } else {
    1.10 -          _node_map.set(key._item.second(), val);
    1.11 +          _node_map.set(static_cast<const DigraphNode&>(key), val);
    1.12          }
    1.13        }
    1.14  
    1.15        ReturnValue operator[](const Arc& key) {
    1.16          if (SplitNodesBase<DGR>::origArc(key)) {
    1.17 -          return _arc_map[key._item.first()];
    1.18 +          return _arc_map[static_cast<const DigraphArc&>(key)];
    1.19          } else {
    1.20 -          return _node_map[key._item.second()];
    1.21 +          return _node_map[static_cast<const DigraphNode&>(key)];
    1.22          }
    1.23        }
    1.24  
    1.25        ConstReturnValue operator[](const Arc& key) const {
    1.26          if (SplitNodesBase<DGR>::origArc(key)) {
    1.27 -          return _arc_map[key._item.first()];
    1.28 +          return _arc_map[static_cast<const DigraphArc&>(key)];
    1.29          } else {
    1.30 -          return _node_map[key._item.second()];
    1.31 +          return _node_map[static_cast<const DigraphNode&>(key)];
    1.32          }
    1.33        }
    1.34