test/graph_test.h
changeset 1728 eb8bb91ba9e2
parent 1435 8e85e6bbefdf
child 1875 98698b69a902
     1.1 --- a/test/graph_test.h	Fri Oct 14 11:02:34 2005 +0000
     1.2 +++ b/test/graph_test.h	Fri Oct 14 11:03:40 2005 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  #ifndef LEMON_TEST_GRAPH_TEST_H
     1.5  #define LEMON_TEST_GRAPH_TEST_H
     1.6  
     1.7 -
     1.8 +#include <lemon/graph_utils.h>
     1.9  #include "test_tools.h"
    1.10  
    1.11  //! \ingroup misc
    1.12 @@ -80,6 +80,19 @@
    1.13      checkBidirPetersen(G, num);
    1.14    }
    1.15  
    1.16 +  template <class Graph> 
    1.17 +  void checkGraphIterators(const Graph& graph) {
    1.18 +    typedef typename Graph::Node Node;
    1.19 +    typedef typename Graph::NodeIt NodeIt;
    1.20 +    typedef typename Graph::Edge Edge;
    1.21 +    typedef typename Graph::EdgeIt EdgeIt;
    1.22 +    typedef typename Graph::InEdgeIt InEdgeIt;
    1.23 +    typedef typename Graph::OutEdgeIt OutEdgeIt;
    1.24 +    typedef ConEdgeIt<Graph> ConEdgeIt;
    1.25 +    
    1.26 +    for (NodeIt it(graph); it != INVALID; ++it) {}
    1.27 +  }
    1.28 +
    1.29    ///\file
    1.30    ///\todo Check target(), source() as well;
    1.31