[Lemon-commits] [lemon_svn] marci: r690 - hugo/trunk/src/work/marci

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:40:59 CET 2006


Author: marci
Date: Tue May  4 14:01:49 2004
New Revision: 690

Modified:
   hugo/trunk/src/work/marci/graph_wrapper.h

Log:
An undirected graph template UndirGraph<Graph> can be used.


Modified: hugo/trunk/src/work/marci/graph_wrapper.h
==============================================================================
--- hugo/trunk/src/work/marci/graph_wrapper.h	(original)
+++ hugo/trunk/src/work/marci/graph_wrapper.h	Tue May  4 14:01:49 2004
@@ -541,6 +541,22 @@
 	return this->graph->tail(e); }
   };
   
+
+
+  /// An undirected graph template
+  template<typename Graph>
+  class UndirGraph : public UndirGraphWrapper<Graph> {
+    typedef UndirGraphWrapper<Graph> Parent;
+  protected:
+    Graph gr;
+  public:
+    UndirGraph() : UndirGraphWrapper<Graph>() { 
+      Parent::setGraph(gr); 
+    }
+  };
+
+  
+
   /// A wrapper for composing the residual graph for directed flow and circulation problems.
 
   /// A wrapper for composing the residual graph for directed flow and circulation problems.



More information about the Lemon-commits mailing list