[Lemon-commits] [lemon_svn] alpar: r151 - hugo/trunk/src/work/alpar

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


Author: alpar
Date: Sun Feb 22 16:16:54 2004
New Revision: 151

Modified:
   hugo/trunk/src/work/alpar/smart_graph.h

Log:
Bugfix in Dyn{Node|Edge}Maps.


Modified: hugo/trunk/src/work/alpar/smart_graph.h
==============================================================================
--- hugo/trunk/src/work/alpar/smart_graph.h	(original)
+++ hugo/trunk/src/work/alpar/smart_graph.h	Sun Feb 22 16:16:54 2004
@@ -294,7 +294,7 @@
 	  //if(*i==this) G->dyn_node_maps.erase(i); //FIXME: Way too slow...
 	  //A better way to do that: (Is this really important?)
 	  if(*i==this) {
-	    G->dyn_node_maps[i]=G->dyn_node_maps.back;
+	    *i=G->dyn_node_maps.back();
 	    G->dyn_node_maps.pop_back();
 	  }
 	}
@@ -342,7 +342,7 @@
 	  //if(*i==this) G->dyn_edge_maps.erase(i); //Way too slow...
 	  //A better way to do that: (Is this really important?)
 	  if(*i==this) {
-	    G->dyn_edge_maps[i]=G->dyn_edge_maps.back;
+	    *i=G->dyn_edge_maps.back();
 	    G->dyn_edge_maps.pop_back();
 	  }
 	}



More information about the Lemon-commits mailing list