Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
657 bytes
|
Rev | Line | |
---|
[29] | 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 | public: |
---|
| 13 | template<class V1, class V2> |
---|
| 14 | void operator()(const V1&, const V2&) const {} |
---|
| 15 | }; |
---|
| 16 | |
---|
| 17 | int main() |
---|
| 18 | { |
---|
| 19 | adjacency_list<vecS, vecS, directedS, property<vertex_root_t, int> > g1, g2; |
---|
| 20 | adjacency_list<vecS, setS, directedS, property<vertex_index_t, int> > g3; |
---|
| 21 | |
---|
| 22 | copy_graph(g1, g2); |
---|
| 23 | copier c; |
---|
| 24 | copy_graph(g3, g1, vertex_copy(c)); |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.