[Lemon-commits] [lemon_svn] marci: r747 - hugo/trunk/src/hugo
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:41:17 CET 2006
Author: marci
Date: Fri May 7 10:48:11 2004
New Revision: 747
Modified:
hugo/trunk/src/hugo/graph_wrapper.h
Log:
Edge opposite(const Edge&) in BidirGaphWrapper<Graph>
Modified: hugo/trunk/src/hugo/graph_wrapper.h
==============================================================================
--- hugo/trunk/src/hugo/graph_wrapper.h (original)
+++ hugo/trunk/src/hugo/graph_wrapper.h Fri May 7 10:48:11 2004
@@ -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 { }
More information about the Lemon-commits
mailing list