First public contribution.
1 //=======================================================================
2 // Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
3 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //=======================================================================
10 * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
13 #include <boost/graph/graph_concepts.hpp>
14 #include <boost/graph/graph_archetypes.hpp>
17 #include "std_log_result.h"
18 #define LOG_FILENAME_LINE __FILE__, __LINE__
22 using namespace boost;
24 // Check graph concepts againt their archetypes
25 typedef default_constructible_archetype<
26 sgi_assignable_archetype< equality_comparable_archetype<> > > Vertex;
28 typedef incidence_graph_archetype<Vertex, directed_tag,
29 allow_parallel_edge_tag> Graph1;
30 function_requires< IncidenceGraphConcept<Graph1> >();
32 typedef adjacency_graph_archetype<Vertex, directed_tag,
33 allow_parallel_edge_tag> Graph2;
34 function_requires< AdjacencyGraphConcept<Graph2> >();
36 typedef vertex_list_graph_archetype<Vertex, directed_tag,
37 allow_parallel_edge_tag> Graph3;
38 function_requires< VertexListGraphConcept<Graph3> >();
40 function_requires< ColorValueConcept<color_value_archetype> >();
42 typedef incidence_graph_archetype<Vertex, directed_tag, allow_parallel_edge_tag> G;
43 typedef property_graph_archetype<G, vertex_color_t, color_value_archetype>
45 function_requires< PropertyGraphConcept<Graph4, Vertex, vertex_color_t> >();
49 std_log(LOG_FILENAME_LINE,"[End Test Case ]");
51 testResultXml("graph_concepts");