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 14<!-- Copyright (C) 2004-2008 The Trustees of Indiana University. 15Use, modification and distribution is subject to the Boost Software 16License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 17http://www.boost.org/LICENSE_1_0.txt) --> 18<p>The local subgraph adaptor takes an existing <cite>Distributed Graph</cite> and 19filters out all of the nonlocal edges and vertices, presenting only 20the local portion of the distributed graph to the user. The behavior 21is 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 22noncopying view into the graph itself. Changes made through the 23filtered graph will be reflected in the original graph and vice-versa.</p> 24<pre class="literal-block"> 25template<typename DistributedGraph> class local_subgraph; 26 27template<typename DistributedGraph> 28local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g); 29</pre> 30<div class="section" id="where-defined"> 31<h1>Where Defined</h1> 32<p><boost/graph/distributed/local_subgraph.hpp></p> 33</div> 34<div class="section" id="reference"> 35<h1>Reference</h1> 36<p>The local subgraph adaptor adapts and forwards all operations of 37distributed graphs, the signatures of which will be omitted. Only 38operations unique to the local subgraph adaptor are presented.</p> 39<div class="section" id="member-functions"> 40<h2>Member Functions</h2> 41<pre class="literal-block"> 42local_subgraph(DistributedGraph& g); 43</pre> 44<p>Constructs a local subgraph presenting the local portion of the 45distributed graph <tt class="docutils literal"><span class="pre">g</span></tt>.</p> 46<hr class="docutils" /> 47<pre class="literal-block"> 48DistributedGraph& base() { return g; } 49const DistributedGraph& base() const { return g; } 50</pre> 51<p>Returns the underlying distributed graph.</p> 52</div> 53<div class="section" id="free-functions"> 54<h2>Free Functions</h2> 55<pre class="literal-block"> 56template<typename DistributedGraph> 57local_subgraph<DistributedGraph> make_local_subgraph(DistributedGraph& g); 58</pre> 59<p>Constructs a local subgraph presenting the local portion of the 60distributed graph <tt class="docutils literal"><span class="pre">g</span></tt>.</p> 61</div> 62</div> 63</div> 64<div class="footer"> 65<hr class="footer" /> 66Generated on: 2009-05-31 00:22 UTC. 67Generated 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. 68 69</div> 70</body> 71</html> 72