Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:37:19

0001 // Copyright (C) 2005-2006 The Trustees of Indiana University.
0002 
0003 // Use, modification and distribution is subject to the Boost Software
0004 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 //  Authors: Nick Edmonds
0008 //           Andrew Lumsdaine
0009 #ifndef BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP
0010 #define BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP
0011 
0012 #ifndef BOOST_GRAPH_USE_MPI
0013 #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
0014 #endif
0015 
0016 #include <boost/graph/reverse_graph.hpp>
0017 #include <boost/graph/parallel/container_traits.hpp>
0018 
0019 namespace boost {
0020   namespace graph {
0021     namespace parallel {
0022       /// Retrieve the process group from a reverse graph
0023       template<typename Graph, typename GraphRef>
0024       struct process_group_type<reverse_graph<Graph, GraphRef> >
0025         : process_group_type<Graph> { };
0026     }
0027 
0028   }
0029 
0030   /// Retrieve the process group from a reverse graph
0031   template<typename Graph, typename GraphRef>
0032   inline typename graph::parallel::process_group_type<Graph>::type
0033   process_group(reverse_graph<Graph, GraphRef> const& g) {
0034     return process_group(g.m_g);
0035   }
0036 } // namespace boost
0037 
0038 #endif