.
1.1 --- a/src/hugo/dimacs.h Tue Aug 31 17:54:22 2004 +0000
1.2 +++ b/src/hugo/dimacs.h Tue Aug 31 17:59:33 2004 +0000
1.3 @@ -172,16 +172,14 @@
1.4 os << "c matching problem" << std::endl;
1.5
1.6 int i=1;
1.7 - NodeIt v;
1.8 - for(g.first(v); g.valid(v); g.next(v)) {
1.9 + for(NodeIt v(g); v!=INVALID; ++v) {
1.10 nodes.set(v, i);
1.11 ++i;
1.12 }
1.13
1.14 os << "p mat " << g.nodeNum() << " " << g.edgeNum() << std::endl;
1.15
1.16 - EdgeIt e;
1.17 - for(g.first(e); g.valid(e); g.next(e)) {
1.18 + for(EdgeIt e(g); e!=INVALID; ++e) {
1.19 os << "a " << nodes[g.tail(e)] << " " << nodes[g.head(e)] << std::endl;
1.20 }
1.21