COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/full_graph.h

    r735 r780  
    5252
    5353    Node operator()(int ix) const { return Node(ix); }
    54     int index(const Node& node) const { return node._id; }
     54    static int index(const Node& node) { return node._id; }
    5555
    5656    Arc arc(const Node& s, const Node& t) const {
     
    214214    /// the range <tt>[0..nodeNum()-1]</tt>.
    215215    /// \sa operator()()
    216     int index(Node node) const { return Parent::index(node); }
     216    static int index(const Node& node) { return Parent::index(node); }
    217217
    218218    /// \brief Returns the arc connecting the given nodes.
     
    288288
    289289    Node operator()(int ix) const { return Node(ix); }
    290     int index(const Node& node) const { return node._id; }
     290    static int index(const Node& node) { return node._id; }
    291291
    292292    Edge edge(const Node& u, const Node& v) const {
     
    589589    /// the range <tt>[0..nodeNum()-1]</tt>.
    590590    /// \sa operator()()
    591     int index(Node node) const { return Parent::index(node); }
     591    static int index(const Node& node) { return Parent::index(node); }
    592592
    593593    /// \brief Returns the arc connecting the given nodes.
Note: See TracChangeset for help on using the changeset viewer.