An undirected graph template UndirGraph<Graph> can be used.
1.1 --- a/src/work/marci/graph_wrapper.h Tue May 04 12:00:13 2004 +0000
1.2 +++ b/src/work/marci/graph_wrapper.h Tue May 04 12:01:49 2004 +0000
1.3 @@ -541,6 +541,22 @@
1.4 return this->graph->tail(e); }
1.5 };
1.6
1.7 +
1.8 +
1.9 + /// An undirected graph template
1.10 + template<typename Graph>
1.11 + class UndirGraph : public UndirGraphWrapper<Graph> {
1.12 + typedef UndirGraphWrapper<Graph> Parent;
1.13 + protected:
1.14 + Graph gr;
1.15 + public:
1.16 + UndirGraph() : UndirGraphWrapper<Graph>() {
1.17 + Parent::setGraph(gr);
1.18 + }
1.19 + };
1.20 +
1.21 +
1.22 +
1.23 /// A wrapper for composing the residual graph for directed flow and circulation problems.
1.24
1.25 /// A wrapper for composing the residual graph for directed flow and circulation problems.