Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/graph/test/graph_concepts.cpp @ 47

Last change on this file since 47 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.5 KB
Line 
1//=======================================================================
2// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
3// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
4//
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//=======================================================================
9#include <boost/graph/graph_concepts.hpp>
10#include <boost/graph/graph_archetypes.hpp>
11
12int main(int,char*[])
13{
14  using namespace boost;
15
16  // Check graph concepts againt their archetypes
17  typedef default_constructible_archetype<
18    sgi_assignable_archetype< equality_comparable_archetype<> > > Vertex;
19
20  typedef incidence_graph_archetype<Vertex, directed_tag, 
21    allow_parallel_edge_tag> Graph1;
22  function_requires< IncidenceGraphConcept<Graph1> >();
23
24  typedef adjacency_graph_archetype<Vertex, directed_tag, 
25    allow_parallel_edge_tag> Graph2;
26  function_requires< AdjacencyGraphConcept<Graph2> >();
27
28  typedef vertex_list_graph_archetype<Vertex, directed_tag, 
29    allow_parallel_edge_tag> Graph3;
30  function_requires< VertexListGraphConcept<Graph3> >();
31
32  function_requires< ColorValueConcept<color_value_archetype> >();
33
34  typedef incidence_graph_archetype<Vertex, directed_tag, allow_parallel_edge_tag> G;
35  typedef property_graph_archetype<G, vertex_color_t, color_value_archetype>
36    Graph4;
37  function_requires< PropertyGraphConcept<Graph4, Vertex, vertex_color_t> >();
38
39  return 0;
40}
Note: See TracBrowser for help on using the repository browser.