COIN-OR::LEMON - Graph Library

Changeset 778:08a1d1e3070d in lemon-0.x for src


Ignore:
Timestamp:
08/31/04 19:59:33 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1071
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/dimacs.h

    r575 r778  
    173173
    174174    int i=1;
    175     NodeIt v;
    176     for(g.first(v); g.valid(v); g.next(v)) {
     175    for(NodeIt v(g); v!=INVALID; ++v) {
    177176      nodes.set(v, i);
    178177      ++i;
     
    181180    os << "p mat " << g.nodeNum() << " " << g.edgeNum() << std::endl;
    182181
    183     EdgeIt e;
    184     for(g.first(e); g.valid(e); g.next(e)) {
     182    for(EdgeIt e(g); e!=INVALID; ++e) {
    185183      os << "a " << nodes[g.tail(e)] << " " << nodes[g.head(e)] << std::endl;
    186184    }
Note: See TracChangeset for help on using the changeset viewer.