Edge opposite(const Edge&) in BidirGaphWrapper<Graph>
authormarci
Fri, 07 May 2004 08:48:11 +0000
changeset 572e9ed28955421
parent 571 9632ea8be6ca
child 573 0f6f4eb7abe9
Edge opposite(const Edge&) in BidirGaphWrapper<Graph>
src/hugo/graph_wrapper.h
     1.1 --- a/src/hugo/graph_wrapper.h	Fri May 07 08:18:30 2004 +0000
     1.2 +++ b/src/hugo/graph_wrapper.h	Fri May 07 08:48:11 2004 +0000
     1.3 @@ -806,6 +806,13 @@
     1.4        return ((!e.backward) ? this->graph->bNode(e.in) : 
     1.5  	      this->graph->bNode(e.out)); }
     1.6  
     1.7 +    /// Gives back the opposite edge.
     1.8 +    Edge opposite(const Edge& e) const { 
     1.9 +      Edge f=e;
    1.10 +      f.backward=!f.backward;
    1.11 +      return f;
    1.12 +    }
    1.13 +
    1.14  //    int nodeNum() const { return graph->nodeNum(); }
    1.15      //FIXME
    1.16      void edgeNum() const { }