# HG changeset patch # User marci # Date 1083672109 0 # Node ID bd8109f8e2faf30190ac5ee7c44d6a3a4ba4f8fa # Parent 4da6fb1046642d8c550efe398df7dfe5bab8ce15 An undirected graph template UndirGraph can be used. diff -r 4da6fb104664 -r bd8109f8e2fa src/work/marci/graph_wrapper.h --- a/src/work/marci/graph_wrapper.h Tue May 04 12:00:13 2004 +0000 +++ b/src/work/marci/graph_wrapper.h Tue May 04 12:01:49 2004 +0000 @@ -541,6 +541,22 @@ return this->graph->tail(e); } }; + + + /// An undirected graph template + template + class UndirGraph : public UndirGraphWrapper { + typedef UndirGraphWrapper Parent; + protected: + Graph gr; + public: + UndirGraph() : UndirGraphWrapper() { + 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.