Changeset 67:5f86199dcf3e in lemon-0.x for src/work/list_graph.hh
- Timestamp:
- 02/06/04 12:45:47 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/list_graph.hh
r64 r67 213 213 214 214 ~ListGraph() { 215 while (first<EachNodeIt>().valid()) deleteNode(first<EachNodeIt>());215 while (first<EachNodeIt>().valid()) erase(first<EachNodeIt>()); 216 216 } 217 217 … … 294 294 } 295 295 296 void deleteNode(NodeIt i) {297 while (first<OutEdgeIt>(i).valid()) deleteEdge(first<OutEdgeIt>(i));298 while (first<InEdgeIt>(i).valid()) deleteEdge(first<InEdgeIt>(i));296 void erase(NodeIt i) { 297 while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i)); 298 while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i)); 299 299 _delete_node(i.node); 300 300 } 301 301 302 void deleteEdge(EdgeIt e) { _delete_edge(e.edge); }302 void erase(EdgeIt e) { _delete_edge(e.edge); } 303 303 304 304 void setTail(EdgeIt e, NodeIt tail) {
Note: See TracChangeset
for help on using the changeset viewer.