Chris@16: // Copyright (C) 2005-2006 The Trustees of Indiana University. Chris@16: Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // Authors: Nick Edmonds Chris@16: // Andrew Lumsdaine Chris@16: #ifndef BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP Chris@16: #define BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP Chris@16: Chris@16: #ifndef BOOST_GRAPH_USE_MPI Chris@16: #error "Parallel BGL files should not be included unless has been included" Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace graph { Chris@16: namespace parallel { Chris@16: /// Retrieve the process group from a reverse graph Chris@16: template Chris@16: struct process_group_type > Chris@16: : process_group_type { }; Chris@16: } Chris@16: Chris@16: } Chris@16: Chris@16: /// Retrieve the process group from a reverse graph Chris@16: template Chris@16: inline typename graph::parallel::process_group_type::type Chris@16: process_group(reverse_graph const& g) { Chris@16: return process_group(g.m_g); Chris@16: } Chris@16: } // namespace boost Chris@16: Chris@16: #endif