COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
01/28/05 16:37:08 (20 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/list_graph.h

    r1080 r1106  
    163163    static int id(Edge e) { return e.id; }
    164164
     165    static Node fromId(int id, Node) { return Node(id);}
     166    static Edge fromId(int id, Edge) { return Edge(id);}
     167
    165168    /// Adds a new node to the graph.
    166169
Note: See TracChangeset for help on using the changeset viewer.