[DEV] add v1.76.0

This commit is contained in:
2021-10-05 21:37:46 +02:00
parent a97e9ae7d4
commit d0115b733d
45133 changed files with 4744437 additions and 1026325 deletions

View File

@@ -1,17 +1,17 @@
<HTML>
<!-- Copyright 2007 Aaron Windsor
Distributed under 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)
-->
<Head>
<Title>Boost Graph Library: make_connected</Title>
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
ALINK="#ff0000">
<IMG SRC="../../../boost.png"
ALT="C++ Boost" width="277" height="86">
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
ALINK="#ff0000">
<IMG SRC="../../../boost.png"
ALT="C++ Boost" width="277" height="86">
<BR Clear>
@@ -26,30 +26,30 @@ make_connected(Graph& g, VertexIndexMap vm, AddEdgeVisitor& vis);
<p>
A undirected graph <i>G</i> is connected if, for every pair of vertices
<i>u,v</i> in <i>G</i>, there is a path from <i>u</i> to <i>v</i>.
<tt>make_connected</tt> adds the minimum number of edges needed to make the
input graph connected. The algorithm first identifies all of the
A undirected graph <i>G</i> is connected if, for every pair of vertices
<i>u,v</i> in <i>G</i>, there is a path from <i>u</i> to <i>v</i>.
<tt>make_connected</tt> adds the minimum number of edges needed to make the
input graph connected. The algorithm first identifies all of the
<a href="./connected_components.html">connected components</a> in the graph,
then adds edges to connect those components together in a path. For example, if
a graph contains three connected components <i>A</i>, <i>B</i>, and <i>C</i>,
<tt>make_connected</tt> will add two edges. The two edges added might consist
of one connecting a vertex in <i>A</i> with a vertex in <i>B</i> and one
a graph contains three connected components <i>A</i>, <i>B</i>, and <i>C</i>,
<tt>make_connected</tt> will add two edges. The two edges added might consist
of one connecting a vertex in <i>A</i> with a vertex in <i>B</i> and one
connecting a vertex in <i>B</i> with a vertex in <i>C</i>.
<p>
The default behavior of <tt>make_connected</tt> is to modify the graph
<tt>g</tt> by calling <tt>add_edge(u,v,g)</tt> for every pair of vertices
<i>(u,v)</i> where an edge needs to be added to connect <tt>g</tt>. This
behavior can be overriden by providing a vistor as the <tt>AddEdgeVisitor</tt>
parameter. The only requirement for an <tt>AddEdgeVisitor</tt> is that it
The default behavior of <tt>make_connected</tt> is to modify the graph
<tt>g</tt> by calling <tt>add_edge(u,v,g)</tt> for every pair of vertices
<i>(u,v)</i> where an edge needs to be added to connect <tt>g</tt>. This
behavior can be overriden by providing a vistor as the <tt>AddEdgeVisitor</tt>
parameter. The only requirement for an <tt>AddEdgeVisitor</tt> is that it
define a member function with the following signature:
<pre>
template &lt;typename Graph, typename Vertex&gt;
void visit_vertex_pair(Vertex u, Vertex v, Graph& g);
</pre>
This event point can also be used as a hook to update the underlying edge
index map automatically as edges are added. See the
documentation for the <a href="./AddEdgeVisitor.html">AddEdgeVisitor</a>
index map automatically as edges are added. See the
documentation for the <a href="./AddEdgeVisitor.html">AddEdgeVisitor</a>
concept for more information.
@@ -75,7 +75,7 @@ IN: <tt>VertexIndexMap vm</tt>
<blockquote>
A <a href="../../property_map/doc/ReadablePropertyMap.html">Readable Property Map
</a> that maps vertices from <tt>g</tt> to distinct integers in the range
</a> that maps vertices from <tt>g</tt> to distinct integers in the range
<tt>[0, num_vertices(g) )</tt><br>
<b>Default</b>: <tt>get(vertex_index,g)</tt><br>
</blockquote>
@@ -85,7 +85,7 @@ IN: <tt>AddEdgeVisitor</tt>
<blockquote>
A model of <a href="AddEdgeVisitor.html">AddEdgeVisitor
</a>.<br>
<b>Default</b>: <tt>default_add_edge_visitor</tt>, a class defines
<b>Default</b>: <tt>default_add_edge_visitor</tt>, a class defines
<tt>visit_vertex_pair</tt> to dispatch
its calls to <tt>add_edge</tt>.
</blockquote>
@@ -94,7 +94,7 @@ its calls to <tt>add_edge</tt>.
<h3>Complexity</h3>
On a graph with <i>n</i> vertices and <i>m</i> edges, <tt>make_connected</tt>
On a graph with <i>n</i> vertices and <i>m</i> edges, <tt>make_connected</tt>
runs in time <i>O(n + m)</i>
<H3>Example</H3>
@@ -113,4 +113,4 @@ runs in time <i>O(n + m)</i>
Copyright &copy; 2007 Aaron Windsor (<a href="mailto:aaron.windsor@gmail.com">
aaron.windsor@gmail.com</a>)
</BODY>
</HTML>
</HTML>