src/hugo/full_graph.h
changeset 710 891f99700ea1
parent 606 81a0c2f2f7c6
child 713 57c0b110b31e
     1.1 --- a/src/hugo/full_graph.h	Mon Jul 19 13:32:28 2004 +0000
     1.2 +++ b/src/hugo/full_graph.h	Tue Jul 20 09:43:12 2004 +0000
     1.3 @@ -77,8 +77,8 @@
     1.4      InEdgeIt& first(InEdgeIt& e, const Node v) const { 
     1.5        e=InEdgeIt(*this,v); return e; }
     1.6  
     1.7 -    bool valid(Edge e) const { return e.n!=-1; }
     1.8 -    bool valid(Node n) const { return n.n!=-1; }
     1.9 +    static bool valid(Edge e) const { return e.n!=-1; }
    1.10 +    static bool valid(Node n) const { return n.n!=-1; }
    1.11      
    1.12      template <typename It> It getNext(It it) const
    1.13      { It tmp(it); return next(tmp); }
    1.14 @@ -91,10 +91,10 @@
    1.15      { it.n+=NodeNum; if(it.n>=EdgeNum) it.n=-1; return it; }
    1.16      InEdgeIt& next(InEdgeIt& it) const
    1.17      { if(!((++it.n)%NodeNum)) it.n=-1; return it; }
    1.18 -    EdgeIt& next(EdgeIt& it) const { --it.n; return it; }
    1.19 +    static EdgeIt& next(EdgeIt& it) const { --it.n; return it; }
    1.20  
    1.21 -    int id(Node v) const { return v.n; }
    1.22 -    int id(Edge e) const { return e.n; }
    1.23 +    static int id(Node v) const { return v.n; }
    1.24 +    static int id(Edge e) const { return e.n; }
    1.25  
    1.26      class Node {
    1.27        friend class FullGraph;