COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/full_graph.h

    r834 r782  
    5252
    5353    Node operator()(int ix) const { return Node(ix); }
    54     static int index(const Node& node) { return node._id; }
     54    int index(const Node& node) const { return node._id; }
    5555
    5656    Arc arc(const Node& s, const Node& t) const {
     
    163163  /// only in the concept class.
    164164  ///
    165   /// This class provides constant time counting for nodes and arcs.
    166   ///
    167165  /// \note FullDigraph and FullGraph classes are very similar,
    168166  /// but there are two differences. While this class conforms only
     
    207205    /// completely static, the nodes can be indexed with integers from
    208206    /// the range <tt>[0..nodeNum()-1]</tt>.
    209     /// The index of a node is the same as its ID.
    210207    /// \sa index()
    211208    Node operator()(int ix) const { return Parent::operator()(ix); }
     
    216213    /// completely static, the nodes can be indexed with integers from
    217214    /// the range <tt>[0..nodeNum()-1]</tt>.
    218     /// The index of a node is the same as its ID.
    219215    /// \sa operator()()
    220     static int index(const Node& node) { return Parent::index(node); }
     216    int index(Node node) const { return Parent::index(node); }
    221217
    222218    /// \brief Returns the arc connecting the given nodes.
     
    292288
    293289    Node operator()(int ix) const { return Node(ix); }
    294     static int index(const Node& node) { return node._id; }
     290    int index(const Node& node) const { return node._id; }
    295291
    296292    Edge edge(const Node& u, const Node& v) const {
     
    540536  /// only in the concept class.
    541537  ///
    542   /// This class provides constant time counting for nodes, edges and arcs.
    543   ///
    544538  /// \note FullDigraph and FullGraph classes are very similar,
    545539  /// but there are two differences. While FullDigraph
     
    586580    /// completely static, the nodes can be indexed with integers from
    587581    /// the range <tt>[0..nodeNum()-1]</tt>.
    588     /// The index of a node is the same as its ID.
    589582    /// \sa index()
    590583    Node operator()(int ix) const { return Parent::operator()(ix); }
     
    595588    /// completely static, the nodes can be indexed with integers from
    596589    /// the range <tt>[0..nodeNum()-1]</tt>.
    597     /// The index of a node is the same as its ID.
    598590    /// \sa operator()()
    599     static int index(const Node& node) { return Parent::index(node); }
     591    int index(Node node) const { return Parent::index(node); }
    600592
    601593    /// \brief Returns the arc connecting the given nodes.
Note: See TracChangeset for help on using the changeset viewer.