diff -r f2ea4aac9ada -r c94ef40a22ce src/test/graph_test.h --- a/src/test/graph_test.h Mon Oct 25 13:29:46 2004 +0000 +++ b/src/test/graph_test.h Wed Oct 27 22:38:50 2004 +0000 @@ -21,56 +21,64 @@ //! \ingroup misc //! \file -//! \brief Some utility to test graph classes. +//! \brief Some utility and test cases to test graph classes. namespace lemon { template void checkGraphNodeList(Graph &G, int nn) - { - typename Graph::NodeIt n(G); - for(int i=0;i void checkGraphEdgeList(Graph &G, int nn) - { - typedef typename Graph::EdgeIt EdgeIt; + template + void checkGraphEdgeList(Graph &G, int nn) + { + typedef typename Graph::EdgeIt EdgeIt; - EdgeIt e(G); - for(int i=0;i void checkGraphOutEdgeList(Graph &G, - typename Graph::Node n, - int nn) - { - typename Graph::OutEdgeIt e(G,n); - for(int i=0;i + void checkGraphOutEdgeList(Graph &G, typename Graph::Node n, int nn) + { + typename Graph::OutEdgeIt e(G,n); + for(int i=0;i void checkGraphInEdgeList(Graph &G, - typename Graph::Node n, - int nn) - { - typename Graph::InEdgeIt e(G,n); - for(int i=0;i void + checkGraphInEdgeList(Graph &G, typename Graph::Node n, int nn) + { + typename Graph::InEdgeIt e(G,n); + for(int i=0;i + void checkGraph() { + const int num = 5; + Graph G; + addPetersen(G, num); + bidirGraph(G); + checkBidirPetersen(G, num); + } ///\file ///\todo Check head(), tail() as well;