1 .. Copyright (C) 2004-2008 The Trustees of Indiana University.
2 Use, modification and distribution is subject to the Boost Software
3 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 http://www.boost.org/LICENSE_1_0.txt)
6 =============================
7 |Logo| Local Subgraph Adaptor
8 =============================
10 The local subgraph adaptor takes an existing `Distributed Graph` and
11 filters out all of the nonlocal edges and vertices, presenting only
12 the local portion of the distributed graph to the user. The behavior
13 is equivalent to (and implemented with) a `filtered graph`_, and is a
14 noncopying view into the graph itself. Changes made through the
15 filtered graph will be reflected in the original graph and vice-versa.
19 template<typename DistributedGraph> class local_subgraph;
21 template<typename DistributedGraph>
22 local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g);
26 <boost/graph/distributed/local_subgraph.hpp>
30 The local subgraph adaptor adapts and forwards all operations of
31 distributed graphs, the signatures of which will be omitted. Only
32 operations unique to the local subgraph adaptor are presented.
39 local_subgraph(DistributedGraph& g);
41 Constructs a local subgraph presenting the local portion of the
42 distributed graph ``g``.
44 --------------------------------------------------------------------------
48 DistributedGraph& base() { return g; }
49 const DistributedGraph& base() const { return g; }
51 Returns the underlying distributed graph.
58 template<typename DistributedGraph>
59 local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g);
61 Constructs a local subgraph presenting the local portion of the
62 distributed graph ``g``.
64 .. |Logo| image:: pbgl-logo.png
67 :target: http://www.osl.iu.edu/research/pbgl
69 .. _filtered graph: http://www.boost.org/libs/graph/doc/filtered_graph.html