sl@0: // sl@0: //======================================================================= sl@0: // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. sl@0: // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: //======================================================================= sl@0: // sl@0: #ifndef BOOST_GRAPH_TRANSPOSE_HPP sl@0: #define BOOST_GRAPH_TRANSPOSE_HPP sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: namespace boost { sl@0: sl@0: template sl@0: void transpose_graph(const VertexListGraph& G, MutableGraph& G_T) sl@0: { sl@0: reverse_graph R(G); sl@0: copy_graph(R, G_T); sl@0: } sl@0: sl@0: template sl@0: void transpose_graph(const VertexListGraph& G, MutableGraph& G_T, sl@0: const bgl_named_params& params) sl@0: { sl@0: reverse_graph Rev(G); sl@0: copy_graph(Rev, G_T, params); sl@0: } sl@0: sl@0: } // namespace boost sl@0: sl@0: #endif // BOOST_GRAPH_TRANSPOSE_HPP