/usr/include/boost/graph/distributed
NameSizeModeActions
adjlist/-0755rm
detail/-0755rm
adjacency_list.hpp1497770644editdlrm
betweenness_centrality.hpp701320644editdlrm
boman_et_al_graph_coloring.hpp129870644editdlrm
breadth_first_search.hpp52090644editdlrm
compressed_sparse_row_graph.hpp818050644editdlrm
concepts.hpp70280644editdlrm
connected_components.hpp284010644editdlrm
connected_components_parallel_search.hpp150590644editdlrm
crauser_et_al_shortest_paths.hpp253420644editdlrm
dehne_gotz_min_spanning_tree.hpp386870644editdlrm
delta_stepping_shortest_paths.hpp194150644editdlrm
depth_first_search.hpp104370644editdlrm
dijkstra_shortest_paths.hpp87190644editdlrm
distributed_graph_utility.hpp45600644editdlrm
eager_dijkstra_shortest_paths.hpp162940644editdlrm
filtered_graph.hpp19430644editdlrm
fruchterman_reingold.hpp129630644editdlrm
graphviz.hpp86720644editdlrm
hohberg_biconnected_components.hpp380930644editdlrm
local_subgraph.hpp60570644editdlrm
mpi_process_group.hpp265920644editdlrm
named_graph.hpp481620644editdlrm
one_bit_color_map.hpp40460644editdlrm
page_rank.hpp80030644editdlrm
queue.hpp102490644editdlrm
reverse_graph.hpp12230644editdlrm
rmat_graph_generator.hpp59130644editdlrm
selector.hpp13750644editdlrm
shuffled_distribution.hpp28330644editdlrm
strong_components.hpp403960644editdlrm
st_connected.hpp61580644editdlrm
two_bit_color_map.hpp40410644editdlrm
unsafe_serialize.hpp3800644editdlrm
vertex_list_adaptor.hpp162520644editdlrm
Edit: /usr/include/boost/graph/distributed/local_subgraph.hpp (6057B)
// Copyright (C) 2004-2006 The Trustees of Indiana University. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Authors: Douglas Gregor // Andrew Lumsdaine #ifndef BOOST_GRAPH_LOCAL_SUBGRAPH_HPP #define BOOST_GRAPH_LOCAL_SUBGRAPH_HPP #ifndef BOOST_GRAPH_USE_MPI #error "Parallel BGL files should not be included unless has been included" #endif #include #include #include #include #include namespace boost { namespace graph { namespace detail { // Optionally, virtually derive from a base class template struct derive_from_if; template struct derive_from_if : virtual Base {}; template struct derive_from_if {}; template struct derive_from_if_tag_is : derive_from_if<(is_base_and_derived::value || is_same::value), NewBase> { }; } } // end namespace graph::detail template class is_local_edge { public: typedef bool result_type; typedef typename graph_traits::edge_descriptor argument_type; is_local_edge() : g(0) {} is_local_edge(DistributedGraph& g) : g(&g), owner(get(vertex_owner, g)) {} // Since either the source or target vertex must be local, the // equivalence of their owners indicates a local edge. result_type operator()(const argument_type& e) const { return get(owner, source(e, *g)) == get(owner, target(e, *g)); } private: DistributedGraph* g; typename property_map::const_type owner; }; template class is_local_vertex { public: typedef bool result_type; typedef typename graph_traits::vertex_descriptor argument_type; is_local_vertex() : g(0) {} is_local_vertex(DistributedGraph& g) : g(&g), owner(get(vertex_owner, g)) { } // Since either the source or target vertex must be local, the // equivalence of their owners indicates a local edge. result_type operator()(const argument_type& v) const { return get(owner, v) == process_id(process_group(*g)); } private: DistributedGraph* g; typename property_map::const_type owner; }; template class local_subgraph : public filtered_graph, is_local_vertex > { typedef filtered_graph, is_local_vertex > inherited; typedef typename graph_traits::traversal_category inherited_category; public: struct traversal_category : graph::detail::derive_from_if_tag_is, graph::detail::derive_from_if_tag_is, graph::detail::derive_from_if_tag_is, graph::detail::derive_from_if_tag_is, graph::detail::derive_from_if_tag_is, graph::detail::derive_from_if_tag_is { }; local_subgraph(DistributedGraph& g) : inherited(g, is_local_edge(g), is_local_vertex(g)), g(g) { } // Distributed Container typedef typename boost::graph::parallel::process_group_type::type process_group_type; process_group_type& process_group() { using boost::graph::parallel::process_group; return process_group(g); } const process_group_type& process_group() const { using boost::graph::parallel::process_group; return boost::graph::parallel::process_group(g); } DistributedGraph& base() { return g; } const DistributedGraph& base() const { return g; } private: DistributedGraph& g; }; template class property_map, PropertyTag> : public property_map { }; template class property_map, PropertyTag> { public: typedef typename property_map::const_type type; typedef type const_type; }; template inline typename property_map, PropertyTag>::type get(PropertyTag p, local_subgraph& g) { return get(p, g.base()); } template inline typename property_map, PropertyTag> ::const_type get(PropertyTag p, const local_subgraph& g) { return get(p, g.base()); } template inline local_subgraph make_local_subgraph(DistributedGraph& g) { return local_subgraph(g); } } // end namespace boost #endif // BOOST_GRAPH_LOCAL_SUBGRAPH_HPP