local_subgraph.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
  7. <title>Parallel BGL Local Subgraph Adaptor</title>
  8. <link rel="stylesheet" href="../../../../rst.css" type="text/css" />
  9. </head>
  10. <body>
  11. <div class="document" id="logo-local-subgraph-adaptor">
  12. <h1 class="title"><a class="reference external" href="http://www.osl.iu.edu/research/pbgl"><img align="middle" alt="Parallel BGL" class="align-middle" src="pbgl-logo.png" /></a> Local Subgraph Adaptor</h1>
  13. <!-- Copyright (C) 2004-2008 The Trustees of Indiana University.
  14. Use, modification and distribution is subject to the Boost Software
  15. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  16. http://www.boost.org/LICENSE_1_0.txt) -->
  17. <p>The local subgraph adaptor takes an existing <cite>Distributed Graph</cite> and
  18. filters out all of the nonlocal edges and vertices, presenting only
  19. the local portion of the distributed graph to the user. The behavior
  20. is equivalent to (and implemented with) a <a class="reference external" href="http://www.boost.org/libs/graph/doc/filtered_graph.html">filtered graph</a>, and is a
  21. noncopying view into the graph itself. Changes made through the
  22. filtered graph will be reflected in the original graph and vice-versa.</p>
  23. <pre class="literal-block">
  24. template&lt;typename DistributedGraph&gt; class local_subgraph;
  25. template&lt;typename DistributedGraph&gt;
  26. local_subgraph&lt;DistributedGraph&gt; make_local_subgraph(DistributedGraph&amp; g);
  27. </pre>
  28. <div class="section" id="where-defined">
  29. <h1>Where Defined</h1>
  30. <p>&lt;boost/graph/distributed/local_subgraph.hpp&gt;</p>
  31. </div>
  32. <div class="section" id="reference">
  33. <h1>Reference</h1>
  34. <p>The local subgraph adaptor adapts and forwards all operations of
  35. distributed graphs, the signatures of which will be omitted. Only
  36. operations unique to the local subgraph adaptor are presented.</p>
  37. <div class="section" id="member-functions">
  38. <h2>Member Functions</h2>
  39. <pre class="literal-block">
  40. local_subgraph(DistributedGraph&amp; g);
  41. </pre>
  42. <p>Constructs a local subgraph presenting the local portion of the
  43. distributed graph <tt class="docutils literal"><span class="pre">g</span></tt>.</p>
  44. <hr class="docutils" />
  45. <pre class="literal-block">
  46. DistributedGraph&amp; base() { return g; }
  47. const DistributedGraph&amp; base() const { return g; }
  48. </pre>
  49. <p>Returns the underlying distributed graph.</p>
  50. </div>
  51. <div class="section" id="free-functions">
  52. <h2>Free Functions</h2>
  53. <pre class="literal-block">
  54. template&lt;typename DistributedGraph&gt;
  55. local_subgraph&lt;DistributedGraph&gt; make_local_subgraph(DistributedGraph&amp; g);
  56. </pre>
  57. <p>Constructs a local subgraph presenting the local portion of the
  58. distributed graph <tt class="docutils literal"><span class="pre">g</span></tt>.</p>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="footer">
  63. <hr class="footer" />
  64. Generated on: 2009-05-31 00:22 UTC.
  65. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
  66. </div>
  67. </body>
  68. </html>