COIN-OR::LEMON - Graph Library

Changeset 813:65144c52969c in lemon-0.x for src/hugo/full_graph.h


Ignore:
Timestamp:
09/07/04 12:35:31 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1109
Message:
  • maxEdgeId() and maxNodeId() now works as their names suggest.
  • maxEdgeId(), maxNodeId(), nodeNum() and edgeNum() are documented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/full_graph.h

    r798 r813  
    5959      : NodeNum(_g.nodeNum()), EdgeNum(NodeNum*NodeNum) { }
    6060   
    61     int nodeNum() const { return NodeNum; }  //FIXME: What is this?
    62     int edgeNum() const { return EdgeNum; }  //FIXME: What is this?
    63 
    64     int maxNodeId() const { return NodeNum; }  //FIXME: What is this?
    65     int maxEdgeId() const { return EdgeNum; }  //FIXME: What is this?
     61    ///Number of nodes.
     62    int nodeNum() const { return NodeNum; }
     63    ///Number of edges.
     64    int edgeNum() const { return EdgeNum; }
     65
     66    /// Maximum node ID.
     67   
     68    /// Maximum node ID.
     69    ///\sa id(Node)
     70    int maxNodeId() const { return NodeNum-1; }
     71    /// Maximum edge ID.
     72   
     73    /// Maximum edge ID.
     74    ///\sa id(Edge)
     75    int maxEdgeId() const { return EdgeNum-1; }
    6676
    6777    Node tail(Edge e) const { return e.n%NodeNum; }
     
    7787      e=InEdgeIt(*this,v); return e; }
    7888
     89    /// Node ID.
     90   
     91    /// The ID of a valid Node is a nonnegative integer not greater than
     92    /// \ref maxNodeId(). The range of the ID's is not surely continuous
     93    /// and the greatest node ID can be actually less then \ref maxNodeId().
     94    ///
     95    /// The ID of the \ref INVALID node is -1.
     96    ///\return The ID of the node \c v.
    7997    static int id(Node v) { return v.n; }
     98    /// Edge ID.
     99   
     100    /// The ID of a valid Edge is a nonnegative integer not greater than
     101    /// \ref maxEdgeId(). The range of the ID's is not surely continuous
     102    /// and the greatest edge ID can be actually less then \ref maxEdgeId().
     103    ///
     104    /// The ID of the \ref INVALID edge is -1.
     105    ///\return The ID of the edge \c e.
    80106    static int id(Edge e) { return e.n; }
    81107
Note: See TracChangeset for help on using the changeset viewer.