1// Copyright (C) Vladimir Prus 2003.
2// Distributed under the Boost Software License, Version 1.0. (See
3// accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5
6#include <boost/graph/adjacency_list.hpp>
7#include <boost/graph/copy.hpp>
8
9using namespace boost;
10
11class copier
12{
13public:
14 template < class V1, class V2 > void operator()(const V1&, const V2&) const
15 {
16 }
17};
18
19int main()
20{
21 adjacency_list< vecS, vecS, directedS, property< vertex_root_t, int > > g1,
22 g2;
23 adjacency_list< vecS, setS, directedS, property< vertex_index_t, int > > g3;
24
25 copy_graph(g_in: g1, g_out&: g2);
26 copier c;
27 copy_graph(g_in: g3, g_out&: g1, params: vertex_copy(p: c));
28}
29

source code of boost/libs/graph/test/copy.cpp