Changeset 503:769f31e9f7b0 in lemon-0.x for src/include/smart_graph.h
- Timestamp:
- 05/03/04 09:27:29 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/include/smart_graph.h
r491 r503 81 81 public: 82 82 83 83 84 class NodeIt; 84 85 class EdgeIt; … … 139 140 bool valid(Node n) const { return n.n!=-1; } 140 141 142 ///\deprecated Use 143 ///\code 144 /// e=INVALID; 145 ///\endcode 146 ///instead. 141 147 void setInvalid(Edge &e) { e.n=-1; } 148 ///\deprecated Use 149 ///\code 150 /// e=INVALID; 151 ///\endcode 152 ///instead. 142 153 void setInvalid(Node &n) { n.n=-1; } 143 154 … … 198 209 public: 199 210 Node() {} 200 Node (Invalid i) { n=-1; }211 Node (Invalid) { n=-1; } 201 212 bool operator==(const Node i) const {return n==i.n;} 202 213 bool operator!=(const Node i) const {return n!=i.n;} … … 380 391 DynMapBase<Edge>(*m.G), container(m.container) 381 392 { 382 G->dyn_ node_maps.push_back(this);393 G->dyn_edge_maps.push_back(this); 383 394 } 384 395 … … 390 401 DynMapBase<Edge>(*m.G) 391 402 { 392 G->dyn_ node_maps.push_back(this);403 G->dyn_edge_maps.push_back(this); 393 404 typename std::vector<TT>::const_iterator i; 394 405 for(typename std::vector<TT>::const_iterator i=m.container.begin();
Note: See TracChangeset
for help on using the changeset viewer.