diff -r 0c7d717b9538 -r eb8bb91ba9e2 test/graph_test.h --- a/test/graph_test.h Fri Oct 14 11:02:34 2005 +0000 +++ b/test/graph_test.h Fri Oct 14 11:03:40 2005 +0000 @@ -16,7 +16,7 @@ #ifndef LEMON_TEST_GRAPH_TEST_H #define LEMON_TEST_GRAPH_TEST_H - +#include #include "test_tools.h" //! \ingroup misc @@ -80,6 +80,19 @@ checkBidirPetersen(G, num); } + template + void checkGraphIterators(const Graph& graph) { + typedef typename Graph::Node Node; + typedef typename Graph::NodeIt NodeIt; + typedef typename Graph::Edge Edge; + typedef typename Graph::EdgeIt EdgeIt; + typedef typename Graph::InEdgeIt InEdgeIt; + typedef typename Graph::OutEdgeIt OutEdgeIt; + typedef ConEdgeIt ConEdgeIt; + + for (NodeIt it(graph); it != INVALID; ++it) {} + } + ///\file ///\todo Check target(), source() as well;