COIN-OR::LEMON - Graph Library

Changeset 1106:0a7d604a9763 in lemon-0.x for src/lemon/smart_graph.h


Ignore:
Timestamp:
01/28/05 16:37:08 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1505
Message:

Concept modification to resolve the item by its ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/smart_graph.h

    r1082 r1106  
    122122    static int id(Edge e) { return e.n; }
    123123
     124    static Node fromId(int id, Node) { return Node(id);}
     125
     126    static Edge fromId(int id, Edge) { return Edge(id);}
     127
    124128    Node addNode() {
    125129      Node n; n.n=nodes.size();
Note: See TracChangeset for help on using the changeset viewer.