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 #include <boost/config.hpp>
13 // Without disabling this we get hard errors about initialialized pointers:
14 #pragma warning(disable:4703)
17 #include <boost/graph/graph_concepts.hpp>
18 #include <boost/graph/graph_archetypes.hpp>
19 #include <boost/graph/stanford_graph.hpp>
20 #include <boost/concept/assert.hpp>
24 using namespace boost
;
25 // Check Stanford GraphBase Graph
28 typedef graph_traits
<Graph
>::vertex_descriptor Vertex
;
29 typedef graph_traits
<Graph
>::edge_descriptor Edge
;
30 BOOST_CONCEPT_ASSERT(( VertexListGraphConcept
<Graph
> ));
31 BOOST_CONCEPT_ASSERT(( IncidenceGraphConcept
<Graph
> ));
32 BOOST_CONCEPT_ASSERT(( AdjacencyGraphConcept
<Graph
> ));
33 BOOST_CONCEPT_ASSERT(( PropertyGraphConcept
<Graph
, Edge
, edge_length_t
> ));
34 BOOST_CONCEPT_ASSERT((
35 PropertyGraphConcept
<Graph
, Vertex
, u_property
<Vertex
> > ));
36 BOOST_CONCEPT_ASSERT((
37 PropertyGraphConcept
<Graph
, Edge
, a_property
<Vertex
> > ));
40 typedef const Graph
* Graph
;
41 typedef graph_traits
<Graph
>::vertex_descriptor Vertex
;
42 typedef graph_traits
<Graph
>::edge_descriptor Edge
;
43 BOOST_CONCEPT_ASSERT(( VertexListGraphConcept
<Graph
> ));
44 BOOST_CONCEPT_ASSERT(( IncidenceGraphConcept
<Graph
> ));
45 BOOST_CONCEPT_ASSERT(( AdjacencyGraphConcept
<Graph
> ));
46 BOOST_CONCEPT_ASSERT((
47 ReadablePropertyGraphConcept
<Graph
, Edge
, edge_length_t
> ));
48 BOOST_CONCEPT_ASSERT((
49 ReadablePropertyGraphConcept
<Graph
, Vertex
, u_property
<Vertex
> > ));
50 BOOST_CONCEPT_ASSERT((
51 ReadablePropertyGraphConcept
<Graph
, Edge
, a_property
<Vertex
> > ));