- Increased max. number of iteration
- Better tests.
3 * This file is a part of LEMON, a generic C++ optimization library
5 * Copyright (C) 2003-2006
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
20 #include<lemon/concept_check.h>
22 #include<lemon/smart_graph.h>
23 #include<lemon/concept/graph.h>
24 #include<lemon/concept/ugraph.h>
26 #include<lemon/list_graph.h>
27 #include<lemon/full_graph.h>
28 #include<lemon/graph_adaptor.h>
30 #include"test/test_tools.h"
31 #include"test/graph_test.h"
35 This test makes consistency checks of graph adaptors.
37 \todo More extensive tests are needed
40 using namespace lemon;
41 using namespace lemon::concept;
48 typedef StaticGraph Graph;
49 checkConcept<StaticGraph, GraphAdaptor<Graph> >();
51 checkConcept<StaticGraph, RevGraphAdaptor<Graph> >();
53 checkConcept<StaticGraph, SubGraphAdaptor<Graph,
54 Graph::NodeMap<bool> , Graph::EdgeMap<bool> > >();
55 checkConcept<StaticGraph, NodeSubGraphAdaptor<Graph,
56 Graph::NodeMap<bool> > >();
57 checkConcept<StaticGraph, EdgeSubGraphAdaptor<Graph,
58 Graph::EdgeMap<bool> > >();
60 checkConcept<StaticGraph, SubBidirGraphAdaptor<Graph,
61 Graph::EdgeMap<bool>, Graph::EdgeMap<bool> > >();
62 // checkConcept<StaticGraph, BidirGraph<Graph> >();
63 checkConcept<StaticGraph, ResGraphAdaptor<Graph, int,
64 Graph::EdgeMap<int>, Graph::EdgeMap<int> > >();
66 checkConcept<StaticGraph, ErasingFirstGraphAdaptor<Graph,
67 Graph::NodeMap<Graph::Edge> > >();
69 /// \bug why does not compile with StaticGraph
70 checkConcept<BaseIterableUGraphConcept, UGraphAdaptor<ListGraph> >();
71 checkConcept<IterableUGraphConcept, UGraphAdaptor<ListGraph> >();
72 checkConcept<MappableUGraphConcept, UGraphAdaptor<ListGraph> >();
74 std::cout << __FILE__ ": All tests passed.\n";