aNode(), bNode(), head() and tail() added
authoralpar
Tue, 03 Feb 2004 13:41:46 +0000
changeset 5575ed9549d34d
parent 54 acd0dc288149
child 56 6f1cdec3949d
aNode(), bNode(), head() and tail() added
src/work/alpar/emptygraph.h
     1.1 --- a/src/work/alpar/emptygraph.h	Tue Feb 03 13:29:49 2004 +0000
     1.2 +++ b/src/work/alpar/emptygraph.h	Tue Feb 03 13:41:46 2004 +0000
     1.3 @@ -30,11 +30,22 @@
     1.4    SymEdgeIt &goNext(const SymEdgeIt &);
     1.5    EachEdgeIt &goNext(const EachEdgeIt &);
     1.6  
     1.7 -  bool valid(const NodeIt &n);
     1.8 -  bool valid(const EdgeIt &n);
     1.9 +  NodeIt head(const EdgeIt &);
    1.10 +  NodeIt tail(const EdgeIt &);
    1.11 +  
    1.12 +  NodeIt aNode(const InEdgeIt &);
    1.13 +  NodeIt aNode(const OutEdgeIt &);
    1.14 +  NodeIt aNode(const SymEdgeIt &);
    1.15  
    1.16 -  void setInvalid(const NodeIt &n);
    1.17 -  void setInvalid(const EdgeIt &n);
    1.18 +  NodeIt bNode(const InEdgeIt &);
    1.19 +  NodeIt bNode(const OutEdgeIt &);
    1.20 +  NodeIt bNode(const SymEdgeIt &);
    1.21 +
    1.22 +  bool valid(const NodeIt &);
    1.23 +  bool valid(const EdgeIt &);
    1.24 +
    1.25 +  void setInvalid(const NodeIt &);
    1.26 +  void setInvalid(const EdgeIt &);
    1.27    
    1.28    NodeIt addNode();
    1.29    EdgeIt addEdge(const NodeIt from,const NodeIt to);