src/work/alpar/emptygraph.h
changeset 145 07c32a103bbb
parent 67 5f86199dcf3e
child 147 f3f1d7a4a8d3
     1.1 --- a/src/work/alpar/emptygraph.h	Tue Mar 02 14:51:13 2004 +0000
     1.2 +++ b/src/work/alpar/emptygraph.h	Tue Mar 02 15:45:27 2004 +0000
     1.3 @@ -1,8 +1,9 @@
     1.4  // -*-mode: c++; -*-
     1.5  
     1.6 -class Graph
     1.7 +class EmptyGraph
     1.8  {
     1.9  public:
    1.10 +
    1.11    class EdgeIt {};
    1.12    
    1.13    class InEdgeIt : public EdgeIt {};
    1.14 @@ -18,17 +19,17 @@
    1.15    SymEdgeIt &getFirst(SymEdgeIt &, NodeIt) const {}
    1.16    EachEdgeIt &getFirst(EachEdgeIt &) const {}
    1.17  
    1.18 -  NodeIt next(NodeIt) const {}
    1.19 -  InEdgeIt next(InEdgeIt) const {}
    1.20 -  OutEdgeIt next(OutEdgeIt) const {}
    1.21 -  SymEdgeIt next(SymEdgeIt) const {}
    1.22 -  EachEdgeIt next(EachEdgeIt) const {}
    1.23 +  NodeIt getNext(NodeIt) const {}
    1.24 +  InEdgeIt getNext(InEdgeIt) const {}
    1.25 +  OutEdgeIt getNext(OutEdgeIt) const {}
    1.26 +  SymEdgeIt getNext(SymEdgeIt) const {}
    1.27 +  EachEdgeIt getNext(EachEdgeIt) const {}
    1.28  
    1.29 -  NodeIt &goNext(NodeIt &) const {}
    1.30 -  InEdgeIt &goNext(InEdgeIt &) const {}
    1.31 -  OutEdgeIt &goNext(OutEdgeIt &) const {}
    1.32 -  SymEdgeIt &goNext(SymEdgeIt &) const {}
    1.33 -  EachEdgeIt &goNext(EachEdgeIt &) const {}
    1.34 +  NodeIt &next(NodeIt &) const {}
    1.35 +  InEdgeIt &next(InEdgeIt &) const {}
    1.36 +  OutEdgeIt &next(OutEdgeIt &) const {}
    1.37 +  SymEdgeIt &next(SymEdgeIt &) const {}
    1.38 +  EachEdgeIt &next(EachEdgeIt &) const {}
    1.39  
    1.40    NodeIt head(EdgeIt) const {}
    1.41    NodeIt tail(EdgeIt) const {}
    1.42 @@ -81,3 +82,19 @@
    1.43      EdgeMap(const Graph &G, T t) {}
    1.44    };
    1.45  };
    1.46 +
    1.47 +class EmptyBipGraph : public EmptyGraph
    1.48 +{
    1.49 +  class ANodeIt {};
    1.50 +  class BNodeIt {};
    1.51 +
    1.52 +  ANodeIt &next(ANodeIt &) {}
    1.53 +  BNodeIt &next(BNodeIt &) {}
    1.54 +
    1.55 +  ANodeIt &getFirst(ANodeIt &) const {}
    1.56 +  BNodeIt &getFirst(BNodeIt &) const {}
    1.57 +
    1.58 +  enum NodeClass { A = 0, B = 1 };
    1.59 +  NodeClass getClass(NodeIt n) {}
    1.60 +
    1.61 +}