|
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 |
|
10 /* |
|
11 * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. |
|
12 */ |
|
13 |
|
14 #include <boost/graph/graph_concepts.hpp> |
|
15 #include <boost/graph/graph_archetypes.hpp> |
|
16 #include <boost/graph/stanford_graph.hpp> |
|
17 |
|
18 int main(int,char*[]) |
|
19 { |
|
20 using namespace boost; |
|
21 // Check Stanford GraphBase Graph |
|
22 { |
|
23 typedef Graph* Graph; |
|
24 typedef graph_traits<Graph>::vertex_descriptor Vertex; |
|
25 typedef graph_traits<Graph>::edge_descriptor Edge; |
|
26 function_requires< VertexListGraphConcept<Graph> >(); |
|
27 function_requires< IncidenceGraphConcept<Graph> >(); |
|
28 function_requires< AdjacencyGraphConcept<Graph> >(); |
|
29 function_requires< PropertyGraphConcept<Graph, Edge, edge_length_t > >(); |
|
30 function_requires< |
|
31 PropertyGraphConcept<Graph, Vertex, u_property<Vertex> > >(); |
|
32 function_requires< |
|
33 PropertyGraphConcept<Graph, Edge, a_property<Vertex> > >(); |
|
34 } |
|
35 { |
|
36 typedef const Graph* Graph; |
|
37 typedef graph_traits<Graph>::vertex_descriptor Vertex; |
|
38 typedef graph_traits<Graph>::edge_descriptor Edge; |
|
39 function_requires< VertexListGraphConcept<Graph> >(); |
|
40 function_requires< IncidenceGraphConcept<Graph> >(); |
|
41 function_requires< AdjacencyGraphConcept<Graph> >(); |
|
42 function_requires< |
|
43 ReadablePropertyGraphConcept<Graph, Edge, edge_length_t > >(); |
|
44 function_requires< |
|
45 ReadablePropertyGraphConcept<Graph, Vertex, u_property<Vertex> > >(); |
|
46 function_requires< |
|
47 ReadablePropertyGraphConcept<Graph, Edge, a_property<Vertex> > >(); |
|
48 } |
|
49 |
|
50 #ifdef __SYMBIAN32__ |
|
51 |
|
52 std_log(LOG_FILENAME_LINE,"[End Test Case ]"); |
|
53 |
|
54 testResultXml("stanford_graph_cc"); |
|
55 close_log_file(); |
|
56 #endif |
|
57 return 0; |
|
58 } |