Changeset 309:50f1d2077d50 in lemon-0.x for src/work
- Timestamp:
- 04/05/04 19:56:31 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@427
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/list_graph.h
r304 r309 234 234 235 235 ~ListGraph() { 236 while (first<NodeIt>().valid()) erase(first<NodeIt>()); 236 NodeIt n; 237 while (this->valid(first(n))) erase(n); 238 //while (first<NodeIt>().valid()) erase(first<NodeIt>()); 237 239 } 238 240 … … 335 337 336 338 void erase(Node i) { 337 while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i)); 338 while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i)); 339 { 340 OutEdgeIt e; 341 while (this->valid(first(e, i))) erase(e); 342 } 343 { 344 InEdgeIt e; 345 while (this->valid(first(e, i))) erase(e); 346 } 347 //while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i)); 348 //while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i)); 339 349 _delete_node(i.node); 340 350 }
Note: See TracChangeset
for help on using the changeset viewer.