Changeset 1457:be025fc1b13d in lemon-0.x for lemon/list_graph.h
- Timestamp:
- 06/09/05 11:47:51 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1937
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/list_graph.h
r1435 r1457 458 458 } 459 459 460 ///\bug What is this used for? 461 /// 462 virtual void build() {} 463 ///\bug What is this used for? 464 /// 465 virtual void clear() {} 466 460 467 void regist(ListGraph &_g) { 461 468 g=&_g; … … 518 525 ///\todo This function might be called undo(). 519 526 void restore() { 527 ListGraph &old_g=*g; 520 528 deregist(); 521 529 while(!added_edges.empty()) { 522 g->erase(added_edges.front());530 old_g.erase(added_edges.front()); 523 531 added_edges.pop_front(); 524 532 } 525 533 while(!added_nodes.empty()) { 526 g->erase(added_nodes.front());534 old_g.erase(added_nodes.front()); 527 535 added_nodes.pop_front(); 528 536 }
Note: See TracChangeset
for help on using the changeset viewer.