# HG changeset patch # User marci # Date 1093975173 0 # Node ID 08a1d1e3070d9337b24b20373eb2abc5df4850a2 # Parent a82713ed19f37c8b6c2c0a7bd9305e385606f7af . diff -r a82713ed19f3 -r 08a1d1e3070d src/hugo/dimacs.h --- a/src/hugo/dimacs.h Tue Aug 31 17:54:22 2004 +0000 +++ b/src/hugo/dimacs.h Tue Aug 31 17:59:33 2004 +0000 @@ -172,16 +172,14 @@ os << "c matching problem" << std::endl; int i=1; - NodeIt v; - for(g.first(v); g.valid(v); g.next(v)) { + for(NodeIt v(g); v!=INVALID; ++v) { nodes.set(v, i); ++i; } os << "p mat " << g.nodeNum() << " " << g.edgeNum() << std::endl; - EdgeIt e; - for(g.first(e); g.valid(e); g.next(e)) { + for(EdgeIt e(g); e!=INVALID; ++e) { os << "a " << nodes[g.tail(e)] << " " << nodes[g.head(e)] << std::endl; }