COIN-OR::LEMON - Graph Library

Changeset 2061:7ab148f53d66 in lemon-0.x


Ignore:
Timestamp:
04/18/06 11:14:38 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2705
Message:

Bug fix

Add missing function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/full_graph.h

    r2031 r2061  
    305305    int maxEdgeId() const { return _edgeNum-1; }
    306306
     307    /// \brief Returns the node from its \c id.
     308    ///
     309    /// Returns the node from its \c id. If there is not node
     310    /// with the given id the effect of the function is undefinied.
     311    static Node nodeFromId(int id) { return Node(id);}
     312
     313    /// \brief Returns the edge from its \c id.
     314    ///
     315    /// Returns the edge from its \c id. If there is not edge
     316    /// with the given id the effect of the function is undefinied.
     317    static Edge edgeFromId(int id) { return Edge(id);}
     318
    307319    Node source(Edge e) const {
    308320      /// \todo we may do it faster
Note: See TracChangeset for help on using the changeset viewer.