5.3_Connectivity
5.3_Connectivity
3
Connectivity
Many problems can be modeled with paths formed by travelling along the edges
of graphs. Problems of efficiently planning routes for mail delivery, garbage
pickup, diagnostics in computer networks can be solved using models that involve
paths in graphs.
Paths
A path is a sequence of edges that begins at a vertex of a graph and travels from
vertex to vertex along edges of the graph.
Circuit: A path is a circuit if it begins and ends at the same vertex, (i.e., ) and
the length .
Simple path: A path or a circuit is said to be simple if it does not contain the
same edge more than once.
Example 1: In the following simple undirected graph (figure 1), is a
simple path from to of length 4, because the edges
are all distinct.
Figure 1
A path of length greater than zero that begins and ends at the same vertex is
called a circuit.
A path or circuit is said to be simple if it does not contain the same edge more
than once.
Note:
(1) The alternate terminology for path, circuit and simple path are walk,
closed walk and trail respectively.
(2) There may be more than one path from the initial vertex to the terminal
vertex .
(3) Paths represent useful information in many graph models.
When does a computer network have the property that every pair of computers
can share information, if messages can be sent through one or more intermediate
computers? If computers are represented by vertices and communication links
represent edges then the computer network represents an undirected graph and
the question now becomes: Is there a path between every pair of vertices in the
graph?
If a graph is not connected then it has two or more connected components that
are disjoint and have as their union. That is, if is not connected then is
partitioned into connected components.
Cut vertex: The removal of a vertex and all edges incident with it in a graph
produces a subgraph of with more connected components than in . Then such
a vertex is called a cut vertex or a articulation point.
Note that the removal of a cut vertex from a connected graph produces a
subgraph that is not connected.
Cut edge: An edge whose removal produces a graph with more connected
components than the original graph is called a cut edge or a bridge.
Example 5: Find all cut vertices and all cut edges in the following graph.
Solution: The removal of the vertex and all edges that incident with , i.e.,
, , disconnects the graph. (Note that remove the edges that
incident with only but not the other end vertices namely and ). Therefore
is a cut vertex. Similarly and are also cut vertices.
Removal of the edge (but not the end points ) disconnects the graph.
Therefore is a cut edge. Similarly is also a cut edge.
Connectedness in Digraphs
Note: Every strongly connected digraph is also weakly connected, but not
conversely.
Example 6: Are the following digraphs strongly connected? Are they weakly
connected?
The digraph is weakly connected, because the undirected graph derived from
by ignoring the directions of the edges of is connected. Further, it is not
strongly connected because there is no directed path from to
Solution: Both the graphs and are undirected graphs with six vertices and
eight edges. Both have the degree sequence . Notice that has a
simple circuit of length . Observe that has no simple circuit of
length . It may be noted that all simple circuits in have length atleast
Therefore is not isomorphic to , because the existence of a simple circuit of
length is an isomorphic invariant.
Solution: Both the graphs and are undirected graphs with five vertices and six
edges .Both have the degree sequence . Further ,both have a simple
circuit of length , a simple circuit of length and a simple circuit of length .
Because all these isomorphic invariants agree, the graphs and may be
isomorphic. Observe that the circuit of length in ; in which
the vertex of degree is trapped between two vertices of degree and
. Notice that the circuit of length in ; in a similar circuit
with the same characteristics .These paths guide us to set up the following
bijection from the vertex set of to the vertex set of .
in and in
We notice that
0 1 1 0 1
1 0 1 0 0
AG 1 1 0 1 0 AH
0 0 1 0 1
1 0 0 1 0
Thus
Example 10: How many paths of length four are there from to in the
following simple graph
2 0 0 2 0 4 4 0 8 0 0 8
4 0 8 8 0
2 0 2 2 0 0 0 4
A 3
, A 4
and A
0 2 2 0 4 0 0 4 0 8 8 0
2 0 0 2 0 4 4 0 8 0 0 8
Solution:
2. How many connected components does each of the above graphs have? For
each graph ,find its connected components.
Solution:
where ,
where ,
where ,
where ,
where ,
P2:
Find all cut vertices and cut edges of the following graphs
Solution:
. The removal of the vertex and all edges that incident with disconnects the
graph. Therefore, is the cut vertex. Further , it is the only cut vertex. Note that
the removal of any edge in this graph is not producing a graph with more
connected components than the original graph. Therefore , there are no cut
edges(bridges) in this graph.
The cut vertices are .The cut edge is . The removal of the edge
(not the vertices and ) disconnects the graph into two connected
components.
Solution:
a) The undirected graph derived from this graph by ignoring the directions of the
edges is connected. Therefore it is a weakly connected graph. Notice that
there is a path from to but there is no path from to . Therefore it is not
strongly connected. Thus, it is a weakly connected graph, but not strongly
connected.
b) It is weakly connected, because the undirected graph derived from it by
ignoring the directions of edges is connected. Notice that there is path from
to , but there is no path from to . Therefore, this graph is not
strongly connected. Thus, it is a weakly connected graph, but not strongly
connected.
c) Notice that the undirected graph derived from this graph by ignoring the
directions of the edges is not connected (because it is portioned into two
connected components, one is a rectangle and the other is a triangle
. Therefore, it is not weakly connected. Consequently it is not strongly
connected (If it is strongly connected, then it is weakly connected
a contradiction(because every strongly connected graph is a weakly
connected).).It is neither weakly connected nor strongly connected.
P4:
Solution:
a) First note that there is a path from to ,but there is no path from to .
Therefore it is not strongly connected.
Recall that a strongly connected component of a graph is a maximal
strongly connected subgraph of
Notice that there are two strongly connected components in this
graph, where
and
and
Use paths either to show that these graphs are not isomorphic or to find an
isomorphism between them.
Solution:
Both the graphs and are undirected graphs with vertices and edges.
Both have the degree sequence . Notice that has two simple
circuits of length and . Observe that has no
simple circuit of length . Therefore, is not isomorphic to ,because the
existence of a simple circuit of length is an isomorphic invariant.
P6:
Use paths either to show that these graphs are not isomorphic or to find an
isomorphism between them.
Solution:
Both the graphs and are undirected graphs with vertices and 12 edges.
Both have the degree sequence . Observe that the graphs and
has the following circuit of length respectively,
These circuits guide us to set up the following bijection from the vertex set of
to the vertex set of :
in
in
We notice that
0 1 0 0 1
0 1 0
1 0 1 0 0
0 0 1
0 1 0 1 1
0 0 0
0 0 1 0 1
0 0 1
AG AH
0 0 0 1 1
0 1 0
1 0 0 0 1 0 1 0
0 1 0 1 0 1 0 0
1 0 1 0 1 0 0 0
Thus ,
P7:
Solution:
We have
0 1 1 1
1 0 1 1
A
1 1 0 1
1 1 1 0
3 2 2 2 6 7 7 7
3 2 2 7 6 7 7
2 2
A , 3
A
2 2 3 2 7 7 6 7
2 2 2 3 7 7 7 6
Solution:
We have
0 0 0 1 1 1
0 0 0 1 1 1
0 0 0 1 1 1
A
1 1 1 0 0 0
1 1 1 0 0 0
1 1 1 0 0 0
3 3 3 0 0 0 0 0 0 9 9 9
3 3 3 0 0
0 0 0 0 9 9 9
3 3 3 0 0 0 3 0 0 0 9 9 9
A2 , A
0 0 0 3 3 3 9 9 9 0 0 0
0 0 0 3 3 3 9 9 9 0 0 0
0 0 0 3 3 3 9 9 9 0 0 0
Each vertex of is adjacent to each vertex of and no two vertices
of are adjacent and no two vertices of are adjacent.
Now the number of paths of length in , between any two adjacent vertices
is and the number of paths of length in between any two non adjacent
vertices is