16 # ifndef SEARCH_MEMORY_LEAKS_ENABLED
17 # error SEARCH NOT ENABLED
19 # define new DEBUG_NEW
21 static char THIS_FILE[] = __FILE__;
60 list<node>::iterator the_nodes =
data->
nodes[0].begin();
61 list<node>::iterator the_nodes_end =
data->
nodes[0].end();
63 while(the_nodes != the_nodes_end)
65 (*the_nodes).data->edges[1].erase (
data->
adj_pos[0].front());
68 the_nodes =
data->
nodes[0].erase (the_nodes);
99 list<node>::iterator the_nodes =
data->
nodes[1].begin();
100 list<node>::iterator the_nodes_end =
data->
nodes[1].end();
102 while(the_nodes != the_nodes_end)
104 (*the_nodes).data->edges[0].erase (
data->
adj_pos[1].front());
107 the_nodes =
data->
nodes[1].erase (the_nodes);
122 new_target.
data->
edges[0].end(), *
this));
138 list<node>::iterator the_nodes =
data->
nodes[0].begin();
139 list<node>::iterator the_nodes_end =
data->
nodes[0].end();
141 while(the_nodes != the_nodes_end)
143 (*the_nodes).data->edges[1].erase (
data->
adj_pos[0].front());
152 while(the_nodes != the_nodes_end)
154 (*the_nodes).data->edges[0].erase (
data->
adj_pos[1].front());
174 while(the_nodes != the_nodes_end)
176 data->
adj_pos[0].push_back((*the_nodes).data->edges[1].insert (
177 (*the_nodes).data->edges[1].end(), *
this));
185 while(the_nodes != the_nodes_end)
187 data->
adj_pos[1].push_back((*the_nodes).data->edges[0].insert (
188 (*the_nodes).data->edges[0].end(), *
this));
226 list<node>::iterator the_nodes =
data->
nodes[where].begin();
227 list<node>::iterator the_nodes_end =
data->
nodes[where].end();
229 list<list<edge>::iterator>::iterator the_adj_pos =
232 while(the_nodes != the_nodes_end)
234 the_nodes->data->edges[1-where].erase(*the_adj_pos);