Some correction proposed by Marci.
authoralpar
Wed, 04 Feb 2004 11:55:27 +0000
changeset 566f1cdec3949d
parent 55 75ed9549d34d
child 57 b180c196b4b7
Some correction proposed by Marci.
src/work/alpar/emptygraph.h
     1.1 --- a/src/work/alpar/emptygraph.h	Tue Feb 03 13:41:46 2004 +0000
     1.2 +++ b/src/work/alpar/emptygraph.h	Wed Feb 04 11:55:27 2004 +0000
     1.3 @@ -12,40 +12,40 @@
     1.4  
     1.5    class NodeIt {};
     1.6      
     1.7 -  NodeIt &getFirst(NodeIt &);
     1.8 -  InEdgeIt &getFirst(InEdgeIt &,const NodeIt &);
     1.9 -  OutEdgeIt &getFirst(OutEdgeIt &,const NodeIt &);
    1.10 -  SymEdgeIt &getFirst(SymEdgeIt &,const NodeIt &);
    1.11 -  EachEdgeIt &getFirst(EachEdgeIt &);
    1.12 +  NodeIt &getFirst(NodeIt &) const;
    1.13 +  InEdgeIt &getFirst(InEdgeIt &,const NodeIt) const;
    1.14 +  OutEdgeIt &getFirst(OutEdgeIt &,const NodeIt) const;
    1.15 +  SymEdgeIt &getFirst(SymEdgeIt &,const NodeIt) const;
    1.16 +  EachEdgeIt &getFirst(EachEdgeIt &) const;
    1.17  
    1.18 -  NodeIt next(const NodeIt &);
    1.19 -  InEdgeIt next(const InEdgeIt &);
    1.20 -  OutEdgeIt next(const OutEdgeIt &);
    1.21 -  SymEdgeIt next(const SymEdgeIt &);
    1.22 -  EachEdgeIt next(const EachEdgeIt &);
    1.23 +  NodeIt next(const NodeIt) const;
    1.24 +  InEdgeIt next(const InEdgeIt) const;
    1.25 +  OutEdgeIt next(const OutEdgeIt) const;
    1.26 +  SymEdgeIt next(const SymEdgeIt) const;
    1.27 +  EachEdgeIt next(const EachEdgeIt) const;
    1.28  
    1.29 -  NodeIt &goNext(const NodeIt &);
    1.30 -  InEdgeIt &goNext(const InEdgeIt &);
    1.31 -  OutEdgeIt &goNext(const OutEdgeIt &);
    1.32 -  SymEdgeIt &goNext(const SymEdgeIt &);
    1.33 -  EachEdgeIt &goNext(const EachEdgeIt &);
    1.34 +  NodeIt &goNext(NodeIt &) const;
    1.35 +  InEdgeIt &goNext(InEdgeIt &) const;
    1.36 +  OutEdgeIt &goNext(OutEdgeIt &) const;
    1.37 +  SymEdgeIt &goNext(SymEdgeIt &) const;
    1.38 +  EachEdgeIt &goNext(EachEdgeIt &) const;
    1.39  
    1.40 -  NodeIt head(const EdgeIt &);
    1.41 -  NodeIt tail(const EdgeIt &);
    1.42 +  NodeIt head(const EdgeIt) const;
    1.43 +  NodeIt tail(const EdgeIt) const;
    1.44    
    1.45 -  NodeIt aNode(const InEdgeIt &);
    1.46 -  NodeIt aNode(const OutEdgeIt &);
    1.47 -  NodeIt aNode(const SymEdgeIt &);
    1.48 +  NodeIt aNode(const InEdgeIt) const;
    1.49 +  NodeIt aNode(const OutEdgeIt) const;
    1.50 +  NodeIt aNode(const SymEdgeIt) const;
    1.51  
    1.52 -  NodeIt bNode(const InEdgeIt &);
    1.53 -  NodeIt bNode(const OutEdgeIt &);
    1.54 -  NodeIt bNode(const SymEdgeIt &);
    1.55 +  NodeIt bNode(const InEdgeIt) const;
    1.56 +  NodeIt bNode(const OutEdgeIt) const;
    1.57 +  NodeIt bNode(const SymEdgeIt) const;
    1.58  
    1.59 -  bool valid(const NodeIt &);
    1.60 -  bool valid(const EdgeIt &);
    1.61 +  bool valid(const NodeIt) const;
    1.62 +  bool valid(const EdgeIt) const;
    1.63  
    1.64 -  void setInvalid(const NodeIt &);
    1.65 -  void setInvalid(const EdgeIt &);
    1.66 +  void setInvalid(NodeIt &) const;
    1.67 +  void setInvalid(EdgeIt &) const;
    1.68    
    1.69    NodeIt addNode();
    1.70    EdgeIt addEdge(const NodeIt from,const NodeIt to);