COIN-OR::LEMON - Graph Library

Changeset 624:2e2618612b68 in lemon-0.x


Ignore:
Timestamp:
05/12/04 15:55:37 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@814
Message:

bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/graph_wrapper.h

    r623 r624  
    12361236      typename Graph::template EdgeMap<T> forward_map, backward_map;
    12371237    public:
     1238      typedef T ValueType;
     1239      typedef Edge KeyType;
    12381240      EdgeMap(const ResGraphWrapper<Graph, Number, CapacityMap, FlowMap>& _G) : forward_map(*(_G.graph)), backward_map(*(_G.graph)) { }
    12391241      EdgeMap(const ResGraphWrapper<Graph, Number, CapacityMap, FlowMap>& _G, T a) : forward_map(*(_G.graph), a), backward_map(*(_G.graph), a) { }
    12401242      void set(Edge e, T a) {
    12411243        if (!e.backward)
    1242           forward_map.set(e.out, a);
     1244          forward_map.set(e/*.out*/, a);
    12431245        else
    1244           backward_map.set(e.in, a);
     1246          backward_map.set(e/*.in*/, a);
    12451247      }
    12461248      T operator[](Edge e) const {
    12471249        if (!e.backward)
    1248           return forward_map[e.out];
     1250          return forward_map[e/*.out*/];
    12491251        else
    1250           return backward_map[e.in];
     1252          return backward_map[e/*.in*/];
    12511253      }
    12521254//       T get(Edge e) const {
Note: See TracChangeset for help on using the changeset viewer.