COIN-OR::LEMON - Graph Library

Changeset 1627:3fd1ba6e9872 in lemon-0.x for lemon/graph_adaptor.h


Ignore:
Timestamp:
08/11/05 17:55:17 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2135
Message:

Some modification on the undirected graph interface.
Doc improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_adaptor.h

    r1576 r1627  
    106106    void clear() const { graph->clear(); }
    107107   
    108     bool forward(const Edge& e) const { return graph->forward(e); }
    109     bool backward(const Edge& e) const { return graph->backward(e); }
    110 
    111108    int id(const Node& v) const { return graph->id(v); }
    112109    int id(const Edge& e) const { return graph->id(e); }
    113110   
    114     Edge opposite(const Edge& e) const { return Edge(graph->opposite(e)); }
     111    Edge oppositeNode(const Edge& e) const {
     112      return Edge(graph->opposite(e));
     113    }
    115114
    116115    template <typename _Value>
     
    609608     
    610609      void set(Edge e, T a) {
    611         if (g->forward(e))
     610        if (g->direction(e))
    612611          forward_map.set(e, a);
    613612        else
     
    616615
    617616      T operator[](Edge e) const {
    618         if (g->forward(e))
     617        if (g->direction(e))
    619618          return forward_map[e];
    620619        else
Note: See TracChangeset for help on using the changeset viewer.