# HG changeset patch # User marci # Date 1083919691 0 # Node ID e9ed28955421cc531ad3e74439557d22940984ef # Parent 9632ea8be6cac834339d8a3aec727ff55bfd9d9b Edge opposite(const Edge&) in BidirGaphWrapper diff -r 9632ea8be6ca -r e9ed28955421 src/hugo/graph_wrapper.h --- a/src/hugo/graph_wrapper.h Fri May 07 08:18:30 2004 +0000 +++ b/src/hugo/graph_wrapper.h Fri May 07 08:48:11 2004 +0000 @@ -806,6 +806,13 @@ return ((!e.backward) ? this->graph->bNode(e.in) : this->graph->bNode(e.out)); } + /// Gives back the opposite edge. + Edge opposite(const Edge& e) const { + Edge f=e; + f.backward=!f.backward; + return f; + } + // int nodeNum() const { return graph->nodeNum(); } //FIXME void edgeNum() const { }