1 | // Copyright 2006 The Trustees of Indiana University. |
2 | |
3 | // Use, modification and distribution is subject to the Boost Software |
4 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
5 | // http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | // Authors: Douglas Gregor |
8 | // Andrew Lumsdaine |
9 | |
10 | // Make sure adjacency_list works with EdgeListS=setS |
11 | #include <boost/graph/adjacency_list.hpp> |
12 | |
13 | using namespace boost; |
14 | |
15 | typedef adjacency_list< vecS, vecS, undirectedS, no_property, no_property, |
16 | no_property, setS > |
17 | GraphType; |
18 | |
19 | int main(int, char*[]) |
20 | { |
21 | GraphType g(10); |
22 | add_vertex(g_&: g); |
23 | add_edge(u: 0, v: 5, g_&: g); |
24 | return 0; |
25 | } |
26 | |