local_subgraph.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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)
  5. =============================
  6. |Logo| Local Subgraph Adaptor
  7. =============================
  8. The local subgraph adaptor takes an existing `Distributed Graph` and
  9. filters out all of the nonlocal edges and vertices, presenting only
  10. the local portion of the distributed graph to the user. The behavior
  11. is equivalent to (and implemented with) a `filtered graph`_, and is a
  12. noncopying view into the graph itself. Changes made through the
  13. filtered graph will be reflected in the original graph and vice-versa.
  14. ::
  15. template<typename DistributedGraph> class local_subgraph;
  16. template<typename DistributedGraph>
  17. local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g);
  18. Where Defined
  19. -------------
  20. <boost/graph/distributed/local_subgraph.hpp>
  21. Reference
  22. ---------
  23. The local subgraph adaptor adapts and forwards all operations of
  24. distributed graphs, the signatures of which will be omitted. Only
  25. operations unique to the local subgraph adaptor are presented.
  26. Member Functions
  27. ~~~~~~~~~~~~~~~~
  28. ::
  29. local_subgraph(DistributedGraph& g);
  30. Constructs a local subgraph presenting the local portion of the
  31. distributed graph ``g``.
  32. --------------------------------------------------------------------------
  33. ::
  34. DistributedGraph& base() { return g; }
  35. const DistributedGraph& base() const { return g; }
  36. Returns the underlying distributed graph.
  37. Free Functions
  38. ~~~~~~~~~~~~~~
  39. ::
  40. template<typename DistributedGraph>
  41. local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g);
  42. Constructs a local subgraph presenting the local portion of the
  43. distributed graph ``g``.
  44. .. |Logo| image:: pbgl-logo.png
  45. :align: middle
  46. :alt: Parallel BGL
  47. :target: http://www.osl.iu.edu/research/pbgl
  48. .. _filtered graph: http://www.boost.org/libs/graph/doc/filtered_graph.html