• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
9 using namespace boost;
10 
11 class copier
12 {
13 public:
operator ()(const V1 &,const V2 &) const14     template < class V1, class V2 > void operator()(const V1&, const V2&) const
15     {
16     }
17 };
18 
main()19 int 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(g1, g2);
26     copier c;
27     copy_graph(g3, g1, vertex_copy(c));
28 }
29