COIN-OR::LEMON - Graph Library

Changeset 710:891f99700ea1 in lemon-0.x for src/hugo/full_graph.h


Ignore:
Timestamp:
07/20/04 11:43:12 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@962
Message:

Put some "static"'s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/full_graph.h

    r606 r710  
    7878      e=InEdgeIt(*this,v); return e; }
    7979
    80     bool valid(Edge e) const { return e.n!=-1; }
    81     bool valid(Node n) const { return n.n!=-1; }
     80    static bool valid(Edge e) const { return e.n!=-1; }
     81    static bool valid(Node n) const { return n.n!=-1; }
    8282   
    8383    template <typename It> It getNext(It it) const
     
    9292    InEdgeIt& next(InEdgeIt& it) const
    9393    { if(!((++it.n)%NodeNum)) it.n=-1; return it; }
    94     EdgeIt& next(EdgeIt& it) const { --it.n; return it; }
    95 
    96     int id(Node v) const { return v.n; }
    97     int id(Edge e) const { return e.n; }
     94    static EdgeIt& next(EdgeIt& it) const { --it.n; return it; }
     95
     96    static int id(Node v) const { return v.n; }
     97    static int id(Edge e) const { return e.n; }
    9898
    9999    class Node {
Note: See TracChangeset for help on using the changeset viewer.