COIN-OR::LEMON - Graph Library

Changeset 945:f2ea4aac9ada in lemon-0.x for src/work


Ignore:
Timestamp:
10/25/04 15:29:46 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1311
Message:

Modify to compile with ++-style iterators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/alpar/bfs-named-param.cc

    r921 r945  
    5555    int Qt=0;
    5656   
    57     for(typename Graph::NodeIt n(_graph);_graph.valid(n);_graph.next(n))
     57    for(typename Graph::NodeIt n(_graph);n!=INVALID;++n)
    5858      _visited->set(n,false);
    5959
     
    6363      Node m;
    6464      Node n=Q[Qt++];
    65       for(OutEdgeIt e(_graph,n);_graph.valid(e);_graph.next(e))
     65      for(OutEdgeIt e(_graph,n);e!=INVALID;++e)
    6666        if(!(*_visited)[m=_graph.head(e)]) {
    6767          Q[Qh++]=m;
Note: See TracChangeset for help on using the changeset viewer.