COIN-OR::LEMON - Graph Library

Changeset 738:56e60e9eb2da in lemon-0.x


Ignore:
Timestamp:
07/24/04 16:01:31 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@995
Message:

correction of some bugs pointed by alpar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/graph_wrapper.h

    r736 r738  
    211211    bool backward(const Edge& e) const { return graph->backward(e); }
    212212   
    213     Edge opposite(const Edge& e) const { Edge(graph->opposite(e)); }
     213    Edge opposite(const Edge& e) const { return Edge(graph->opposite(e)); }
    214214
    215215    template<typename T> class NodeMap : public Graph::template NodeMap<T> {
     
    10111011      Parent::setBackwardFilterMap(cm);
    10121012    }
     1013
     1014    int edgeNum() const {
     1015      return 2*this->graph->edgeNum();
     1016    }
    10131017  };
    10141018
     
    13891393    void setFlow(const FlowMap& _flow) { flow=&_flow; }
    13901394    bool operator[](const typename Graph::Edge& e) const {
    1391       return ((*flow)[e] < (*capacity)[e]);
     1395      return (Number((*flow)[e]) < Number((*capacity)[e]));
    13921396    }
    13931397  };
     
    14081412    void setFlow(const FlowMap& _flow) { flow=&_flow; }
    14091413    bool operator[](const typename Graph::Edge& e) const {
    1410       return (0 < (*flow)[e]);
     1414      return (Number(0) < Number((*flow)[e]));
    14111415    }
    14121416  };
Note: See TracChangeset for help on using the changeset viewer.