# HG changeset patch # User alpar # Date 1077463014 0 # Node ID a987c6013ea073175bce3932cec09f0024488896 # Parent 3d9681ef611664a74d3d1f5c0dda79d61223634a Bugfix in Dyn{Node|Edge}Maps. diff -r 3d9681ef6116 -r a987c6013ea0 src/work/alpar/smart_graph.h --- a/src/work/alpar/smart_graph.h Sun Feb 22 12:51:34 2004 +0000 +++ b/src/work/alpar/smart_graph.h Sun Feb 22 15:16:54 2004 +0000 @@ -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(); } }