COIN-OR::LEMON - Graph Library

Changeset 825:a143f19f465b in lemon for lemon/full_graph.h


Ignore:
Timestamp:
09/29/09 13:03:34 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Make some graph member functions static (#311, #68)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/full_graph.h

    r664 r825  
    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 {
     
    210210    /// <tt>[0..nodeNum()-1]</tt>.
    211211    /// \sa operator()
    212     int index(const Node& node) const { return Parent::index(node); }
     212    static int index(const Node& node) { return Parent::index(node); }
    213213
    214214    /// \brief Returns the arc connecting the given nodes.
     
    284284
    285285    Node operator()(int ix) const { return Node(ix); }
    286     int index(const Node& node) const { return node._id; }
     286    static int index(const Node& node) { return node._id; }
    287287
    288288    Edge edge(const Node& u, const Node& v) const {
     
    581581    /// <tt>[0..nodeNum()-1]</tt>.
    582582    /// \sa operator()
    583     int index(const Node& node) const { return Parent::index(node); }
     583    static int index(const Node& node) { return Parent::index(node); }
    584584
    585585    /// \brief Returns the arc connecting the given nodes.
Note: See TracChangeset for help on using the changeset viewer.