1 // Copyright (C) 2005-2006 The Trustees of Indiana University.
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Authors: Nick Edmonds
9 #ifndef BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP
10 #define BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP
12 #ifndef BOOST_GRAPH_USE_MPI
13 #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
16 #include <boost/graph/reverse_graph.hpp>
17 #include <boost/graph/parallel/container_traits.hpp>
22 /// Retrieve the process group from a reverse graph
23 template<typename Graph, typename GraphRef>
24 struct process_group_type<reverse_graph<Graph, GraphRef> >
25 : process_group_type<Graph> { };
30 /// Retrieve the process group from a reverse graph
31 template<typename Graph, typename GraphRef>
32 inline typename graph::parallel::process_group_type<Graph>::type
33 process_group(reverse_graph<Graph, GraphRef> const& g) {
34 return process_group(g.m_g);