[Lemon-commits] [lemon_svn] marci: r1071 - hugo/trunk/src/hugo

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:43:05 CET 2006


Author: marci
Date: Tue Aug 31 19:59:33 2004
New Revision: 1071

Modified:
   hugo/trunk/src/hugo/dimacs.h

Log:
.


Modified: hugo/trunk/src/hugo/dimacs.h
==============================================================================
--- hugo/trunk/src/hugo/dimacs.h	(original)
+++ hugo/trunk/src/hugo/dimacs.h	Tue Aug 31 19:59:33 2004
@@ -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; 
     }
 



More information about the Lemon-commits mailing list