COIN-OR::LEMON - Graph Library

Changeset 844:9bf990cb066d in lemon-0.x for src/hugo/list_graph.h


Ignore:
Timestamp:
09/13/04 22:05:13 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1143
Message:

Bug fix in the symmetric maps.
Faster map initialization.
Iterators and Containers STL compatible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/list_graph.h

    r827 r844  
    11151115      OutEdgeIt(const EdgeSet& _G,const Node v) :
    11161116        Edge(_G.nodes[v].first_out), G(&_G) { }
    1117       OutEdgeIt &operator++() { n = G->edges[n].next_out; return *this; }
     1117      OutEdgeIt &operator++() {
     1118        Edge::n = G->edges[Edge::n].next_out;
     1119        return *this;
     1120      }
    11181121    };
    11191122   
     
    11271130      InEdgeIt(const EdgeSet& _G,Node v)
    11281131        : Edge(_G.nodes[v].first_in), G(&_G) { }
    1129       InEdgeIt &operator++() { n=G->edges[n].next_in; return *this; }
     1132      InEdgeIt &operator++() {
     1133        Edge::n = G->edges[Edge::n].next_in;
     1134        return *this;
     1135      }
    11301136    };
    11311137   
Note: See TracChangeset for help on using the changeset viewer.