Changeset 1106:0a7d604a9763 in lemon0.x for src/lemon/concept
 Timestamp:
 01/28/05 16:37:08 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1505
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/concept/graph_component.h
r1043 r1106 298 298 int id(const Node&) const { return 1;} 299 299 300 /// \brief Gives back the node by the unique id. 301 /// 302 /// Gives back the node by the unique id. 303 /// If the graph does not contain node with the given id 304 /// then the result of the function is undetermined. 305 Node fromId(int id, Node) const { return INVALID;} 306 307 /// \brief Gives back an unique integer id for the Edge. 308 /// 300 309 /// Gives back an unique integer id for the Edge. 301 302 /// Gives back an unique integer id for the Edge.303 310 /// 304 311 int id(const Edge&) const { return 1;} 312 313 /// \brief Gives back the edge by the unique id. 314 /// 315 /// Gives back the edge by the unique id. 316 /// If the graph does not contain edge with the given id 317 /// then the result of the function is undetermined. 318 Edge fromId(int id, Edge) const { return INVALID;} 305 319 306 320 template <typename _Graph> … … 312 326 int nid = graph.id(node); 313 327 nid = graph.id(node); 328 node = graph.fromId(nid, Node()); 314 329 typename _Graph::Edge edge; 315 330 int eid = graph.id(edge); 316 331 eid = graph.id(edge); 332 edge = graph.fromId(eid, Edge()); 317 333 } 318 334
Note: See TracChangeset
for help on using the changeset viewer.