<?xml version="1.0" encoding="UTF-8"?>

<record version="4" id="2743">
 <title>connected graph</title>
 <name>ConnectedGraph</name>
 <created>2002-03-02 11:57:05</created>
 <modified>2005-08-09 00:47:01</modified>
 <type>Definition</type>
 <creator id="6075" name="rspuzio"/>
 <author id="6075" name="rspuzio"/>
 <author id="6" name="Logan"/>
 <classification>
	<category scheme="msc" code="05C40"/>
 </classification>
 <defines>
	<concept>strongly connected graph</concept>
	<concept>connected components</concept>
	<concept>strongly connected components</concept>
 </defines>
 <synonyms>
	<synonym concept="connected graph" alias="connected"/>
	<synonym concept="connected graph" alias="strongly connected"/>
	<synonym concept="connected graph" alias="component"/>
 </synonyms>
 <related>
	<object name="Graph"/>
	<object name="Bridge"/>
	<object name="Cutvertex"/>
	<object name="LocallyConnected"/>
	<object name="KConnectedGraph"/>
	<object name="GraphTopology"/>
	<object name="ClosedPath"/>
	<object name="ConnectedPoset"/>
	<object name="DepthFirstSearch2"/>
	<object name="DepthFirstSearch"/>
	<object name="VectorValuedFunction2"/>
 </related>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[all]{xy}</preamble>
 <content>A \emph{connected graph} is a graph such that there exists a path between all pairs of vertices.  If the graph is a directed graph, and there exists a path from each vertex to every other vertex, then it is a \emph{strongly connected graph}.

A \emph{connected component} is a maximal (under inclusion) subset of vertices of any graph and any edges between them that forms a connected graph.  Similarly, a \emph{strongly connected component} is a maximal (under inclusion) subset of vertices of any digraph and any edges between them that forms a strongly connected graph.  Any graph or digraph is a union of connected or strongly connected components, plus some edges to join the components together.  Thus any graph can be decomposed into its connected or strongly connected components.  For instance, Tarjan's algorithm can decompose any digraph into its strongly connected components.

For example, the following graph and digraph are connected and strongly connected, respectively.

$$
\begin{array}{cc}
\xymatrix{
A \ar@{-}[r] &amp; B \ar@{-}[r] &amp; C \ar@{-}[d] \\
D \ar@{-}[r] &amp; E \ar@{-}[r] &amp; F
}\quad
&amp;
\quad
\xymatrix{
A \ar[r] &amp; B \ar[d] \ar[r] &amp; C \ar[d]\\
D \ar[u] &amp; E \ar[l] &amp; F \ar[l]
}
\end{array}
$$

On the other hand, the following graph is \emph{not} connected, and consists of the union of two connected components.

$$
\xymatrix{
A \ar@{-}[r] &amp; B \ar@{-}[r] &amp; C \\
D \ar@{-}[r] &amp; E \ar@{-}[r] &amp; F
}
$$

The following digraph is \emph{not} strongly connected, because there is
no way to reach $F$ from other vertices, and there is no vertex reachable from $C$.

$$
\xymatrix{
A \ar[r] &amp; B \ar[d] \ar[r] &amp; C \\
D \ar[u] &amp; E \ar[l] &amp; F \ar[l]\ar[u]
}
$$

The three strongly connected components of this graph are

$$
\begin{array}{ccc}
\xymatrix{
A \ar[r] &amp; B\ar[d] \\
D \ar[u] &amp; E\ar[l]
}
&amp;
$C$
&amp;
$F$
\end{array}
$$</content>
</record>
