1.1 --- a/lemon/bits/clearable_graph_extender.h Mon Nov 21 12:07:05 2005 +0000
1.2 +++ b/lemon/bits/clearable_graph_extender.h Mon Nov 21 17:48:00 2005 +0000
1.3 @@ -44,6 +44,31 @@
1.4
1.5 };
1.6
1.7 +
1.8 + template <typename _Base>
1.9 + class ClearableUndirBipartiteGraphExtender : public _Base {
1.10 + public:
1.11 +
1.12 + typedef _Base Parent;
1.13 + typedef ClearableUndirBipartiteGraphExtender Graph;
1.14 +
1.15 + typedef typename Parent::Node Node;
1.16 + typedef typename Parent::LowerNode LowerNode;
1.17 + typedef typename Parent::UpperNode UpperNode;
1.18 + typedef typename Parent::Edge Edge;
1.19 + typedef typename Parent::UndirEdge UndirEdge;
1.20 +
1.21 + void clear() {
1.22 + Parent::getNotifier(Edge()).clear();
1.23 + Parent::getNotifier(UndirEdge()).clear();
1.24 + Parent::getNotifier(Node()).clear();
1.25 + Parent::getNotifier(LowerNode()).clear();
1.26 + Parent::getNotifier(UpperNode()).clear();
1.27 + Parent::clear();
1.28 + }
1.29 +
1.30 + };
1.31 +
1.32 }
1.33
1.34 #endif