Bugfix in Dyn{Node|Edge}Maps.
1.1 --- a/src/work/alpar/smart_graph.h Sun Feb 22 12:51:34 2004 +0000
1.2 +++ b/src/work/alpar/smart_graph.h Sun Feb 22 15:16:54 2004 +0000
1.3 @@ -294,7 +294,7 @@
1.4 //if(*i==this) G->dyn_node_maps.erase(i); //FIXME: Way too slow...
1.5 //A better way to do that: (Is this really important?)
1.6 if(*i==this) {
1.7 - G->dyn_node_maps[i]=G->dyn_node_maps.back;
1.8 + *i=G->dyn_node_maps.back();
1.9 G->dyn_node_maps.pop_back();
1.10 }
1.11 }
1.12 @@ -342,7 +342,7 @@
1.13 //if(*i==this) G->dyn_edge_maps.erase(i); //Way too slow...
1.14 //A better way to do that: (Is this really important?)
1.15 if(*i==this) {
1.16 - G->dyn_edge_maps[i]=G->dyn_edge_maps.back;
1.17 + *i=G->dyn_edge_maps.back();
1.18 G->dyn_edge_maps.pop_back();
1.19 }
1.20 }