# HG changeset patch # User klao # Date 1102606212 0 # Node ID be6ee857b72d89e04abee766111cf91797aaa13f # Parent 9fff45a59e925c398345ea841b56e4b643f53226 Undir list and smart graph diff -r 9fff45a59e92 -r be6ee857b72d src/lemon/list_graph.h --- a/src/lemon/list_graph.h Thu Dec 09 10:45:32 2004 +0000 +++ b/src/lemon/list_graph.h Thu Dec 09 15:30:12 2004 +0000 @@ -24,12 +24,11 @@ #include #include #include +#include +#include +#include -#include - -#include - -#include +#include #include @@ -501,6 +500,21 @@ }; }; + + + /**************** Undirected List Graph ****************/ + + typedef ErasableUndirGraphExtender< + ClearableUndirGraphExtender< + ExtendableUndirGraphExtender< + MappableUndirGraphExtender< + IterableUndirGraphExtender< + AlterableUndirGraphExtender< + UndirGraphExtender > > > > > > ErasableUndirListGraphBase; + + class UndirListGraph : public ErasableUndirListGraphBase { + }; + /// @} } //namespace lemon diff -r 9fff45a59e92 -r be6ee857b72d src/lemon/smart_graph.h --- a/src/lemon/smart_graph.h Thu Dec 09 10:45:32 2004 +0000 +++ b/src/lemon/smart_graph.h Thu Dec 09 15:30:12 2004 +0000 @@ -31,6 +31,8 @@ #include #include +#include + #include namespace lemon { @@ -345,6 +347,20 @@ } }; }; + + + /**************** Undirected List Graph ****************/ + + typedef ClearableUndirGraphExtender< + ExtendableUndirGraphExtender< + MappableUndirGraphExtender< + IterableUndirGraphExtender< + AlterableUndirGraphExtender< + UndirGraphExtender > > > > > UndirSmartGraphBase; + + class UndirSmartGraph : public UndirSmartGraphBase { + }; + /// @} } //namespace lemon diff -r 9fff45a59e92 -r be6ee857b72d src/test/undir_graph_test.cc --- a/src/test/undir_graph_test.cc Thu Dec 09 10:45:32 2004 +0000 +++ b/src/test/undir_graph_test.cc Thu Dec 09 15:30:12 2004 +0000 @@ -33,6 +33,12 @@ checkConcept(); checkConcept(); + checkConcept(); + checkConcept(); + + checkConcept(); + checkConcept(); + checkConcept(); return 0;