Block 2 MS 033 Unit 2
Block 2 MS 033 Unit 2
Block 2 MS 033 Unit 2
UNIT 2 CONNECTEDNESS
Structure Page Nos.
2.0 Introduction 27
2.1 Objectives 27
2.2 Connected Graphs 27
2.2.1 Paths, Circuits and Cycles
2.2.2 Components
2.2.3 Connectivity
2.3 Bipartite Graphs 36
2.4 Trees 40
2.5 Summary 44
2.6 Solutions/Answers 44
2.0 INTRODUCTION
In the last unit you saw that graphs are often used to represent (that is, model)
communication or transportation networks and several other systems such as
representation of a molecule in a chemical compound. In a transportation network, it
is necessary to know which destinations are connected by a direct route. For example,
if air travel is abolished then the people without any seaport cannot go to any other
country unless their neighbours provide the initial road passage through their territory.
When we use a graph to model this situation, we need to see which vertices are
connected. We also need to ensure that there is an edge between any two vertices.
Such graphs are called connected graphs. In Sec.2.2 we will define connected graphs
and we will show that any graph can be partitioned into connected graphs.
In Sec.2.3, we will familiarise you with a type of graph which is useful in electronics
and other areas. These graphs are called bipartite graphs. Such graphs are also very
useful in studying neural networks.
In Sec. 2.4 we have considered another type of graph, a type, which also represents
the chemical compounds butane and isobutane. We call such graphs trees. Here we
will show that a tree has got several interesting properties, which are used in studying
some real-life situations and various chemical compounds.
2.1 OBJECTIVES
After studying this unit, you should be able to
Consider the graph in Fig.1. Imagine yourself walking along its edges, going from
vertex to vertex.
Fig.1
Suppose we want to start at the vertex x1 and reach the vertex x12. Is this possible?
One possible way is to start from vertex x1, walk along the edge x1x2, reach x2, walk
along the edge x2x3, reach x3, walk along x3x4, reach x4, and continue this till we reach
x12. Suppose we denote the edge joining xi−1 and xi as xi−1xi. Then we can describe
this ‘walk’ in an alternating sequence of vertices and edges as x1, x1x2, x2, x2x3, x3,
x3x4, x4, x4x5, x5, x5x6, x6, x6x9, x9, x9x10, x10, x10x11, x11, x11x10, x10, x10x13, x13, x13x12,
x12. This is by no means the shortest way to reach x12 from x1. We could have gone
from x1 to x5 directly. Moreover, we passed through the vertex x10 twice. This is not
necessary. So the walk above can be described as a leisurely walk. If we have more
time at our disposal, we can trace and retrace more edges. For example, we could
have gone from x6 to x9, and again back to x6.
So what are we doing when choosing a walk? We are, in fact, choosing a sequence
whose elements are vertices and edges, alternately. Let us formally define a walk.
Definition: A walk in a graph G is a finite sequence W = {v0, e1, v1, e2, … , ek, vk},
where v0, v1 , K , v k are vertices of G and e1, e2, K , e k are edges joining the vertices
vi−1 and vi, 1 ≤ i ≤ k. (Note that all the vis or eis may not be distinct. There may be
repetition.)
Note: As you have seen, in a walk the vertices as well as edges can be repeated. So
we cannot view this as a subgraph unless all the vertices as well as the edges in the
walk are distinct.
Example1 : Consider the graph on 5 vertices and 7 edges given in Fig.2. Find x1-x5
walks of length 8 and length 4, respectively.
28
Connectedness
Fig. 2
Again, W ′ = { x1, x1x2, x2, x2x4, x4, x4x3, x3, x3x5, x5} is an x1-x5 walk of length 4.
***
E1) For the graph given in Fig.3, find a u-v walk of length 7.
Since we are considering only simple graphs, we often write a walk W as {v0, v1, … ,
vk}. While doing so, we assume that two consecutive vertices in the walk are joined
by an edge in the graph, and that edge is included in the walk. For example, the x1-x12 Fig.3
walk corresponding to Fig.1 that we discussed can be written as
W = {x1, x2, x3, x4, x5, x6, x9, x10, x11, x10, x13, x12}.
Let us now consider some particular kinds of walks, that we use in studying computer
science.
Definitions :
1) A walk W is called a path if all its vertices are distinct, and hence, all its edges
are distinct.
3) A walk in which all the edges are distinct and the only repeated vertex is the
first vertex, this being the same as the last vertex, is called a cycle. (Remember,
we had introduced you to cycles in Unit 1.)
Solution: i) There are several closed walks in it which are not cycles. For
instance,W = {x5, x6, x7, x8, x5, x11, x12, x13, x14, x15, x11, x5} is a closed walk. Since the
edge x5 x11 is repeated, it is not a cycle.
29
Graph Theory
Fig.4
ii) W0 = {x5, x6, x7, x8, x5, x9, x10, x5} is a walk. Here the vertex x5 is repeated
three times. Thus, this is not a path.
iii) W1 = {x5, x6, x7, x8, x5} is a cycle. So is W2 = {x11, x12, x13, x14, x15 2x11}.
***
Try these exercises now.
E2) If all edges are distinct, then all vertices are distinct. True or false ? Why ?
E4) Let G be a graph such that δ (G ) ≥ k . Use the principle of induction to show
that G has a path of length k starting at any given vertex.
(Recall that δ (G) = min {dG (x) : x ∈ V (G )}. )
Now, we know that a walk need not be a path. However, we shall now prove that in
any u-v walk, we can always find a path from u to v.
Theorem 1: If W is a u-v walk joining two distinct vertices u and v, then there is a
path joining u and v contained in the walk.
Proof : We will prove this using the principle of mathematical induction (see Unit 2,
Block 1, MCS-013) on the length of the walk.
Let P (k) denote the statement ‘If W is a u-v walk of length k, then there exists a path
joining u and v contained in W.’
Now, let us assume that the statement P (k−1) is true. In other words, we assume that
given any x-y walk of length ≤ k−1, there exists a path joining x and y contained in
the walk. Then we want to show that the statement P (k) is true.
So, consider the u-v walk W = {u = u0, e1, u1, …, ek, uk = v} of length k.
If W is already a path, we are done. Otherwise, there is at least one vertex which is
repeated. Suppose j is the smallest integer such that the vertex uj is repeated. Then
30
there is an integer t > j such that uj = ut. Now consider the walk W1 obtained by Connectedness
removing the part {ej+1, …, et} in W, that is,
W1 = {u = u0, e1, …, uj = ut, et+1, …ek, uk = v}. Clearly, W1 is a u-v walk contained in
the walk W, and its length is k−t+j<k, since j < t. Hence, by induction, we can get a
path P joining u and v contained in W1. Since P is contained in W1 and W1 is
contained in W, the path P is contained in the walk W.
So, the result is true for any walk of length k, i.e., P(k) is true.
Note that the theorem above does not say that there is a walk joining any two vertices
in a graph. In fact, in many practical situations it is very important to know which
vertices in a graph can be joined by a walk, and hence by a path. For instance, in the
graph in Fig.5, there is no a-x walk. Hence there is no path from a to x.
While studying networks, we often need to know whether two vertices in a graph are
joined by a walk or not. This leads us to the definition of a connected graph, which
we will introduce now.
2.2.2 Components
As you have noticed, almost all the graphs we have discussed so far have been ‘in one
piece’. Some, like the one in Fig.5, are not. We can formalise this difference by
introducing the concept of connectedness.
This means that in a connected graph any two distinct vertices are joined by a path (by Fig.6 : A null graph
Theorem 1). For instance, Kn is connected ∀n ≥ 1. However, a null graph, i.e., a
graph whose edge set is empty, is totally disconnected (see Fig.6).
E6) Can a graph with one vertex be connected? Give reasons for your answer.
Fig.7
E8) “If a graph G is connected, then all its subgraphs are connected.” Prove or
disprove this statement.
While solving E8, you would have realised that subgraphs of connected graphs need
not be connected. Similarly, some subgraphs of disconnected graphs are connected.
Let us discuss such subgraphs now.
31
Graph Theory Definition: Let G = (V, E) be a graph. A subgraph H of G is called a component of
G if H is connected and it is not a subgraph of any other connected subgraph of G.
Thus, a component of G is, in a sense, a ‘maximal’ connected subgraph of G.
The number of components of G is denoted by c(G). For instance, the graph in Fig.5
has two components, the graph in Fig.6 has 6 components, and the graph in Fig.1 has
one component.
Fig.8
Solution: G has three components, given in Figures 9 (a), (b) and (c).
Fig.9
***
Fig.10
Consider all the graphs you have seen so far in this unit. In each case, it can be
written as a disjoint union of its components. This phenomenon generalizes to any
graph, as you will see in the following theorem, which we shall only state.
32
You may ask how this result can be of help. Knowing the number of components, for Connectedness
instance, helps us to find a bound for the number of edges of a graph. Here is a result
about this, again without proof.
E11) Can a graph have more components than vertices ? Give reasons for your
answer.
Another approach used in the study of connected graphs is to ask ‘how connected’ a
connected graph is. One possible interpretation of this question is to ask how many
edges or vertices must be removed from the graph in order to disconnect it. We shall
discuss this in the next subsection.
2.2.3 Connectivity
Let us now consider a graph showing an electric circuit (see Fig.11). This graph is
connected. Suppose we cut the wire connecting d and e in the electric circuit. This Removing the edge de does
not mean that we remove
means that in the graph showing the circuit, we are actually removing the edge de.
the vertices d and e.
When we cut the wire, the circuit becomes disconnected. Correspondingly, the
removal of the edge de in the graph makes the graph disconnected.
Fig.11
We just saw a situation in which the removal of one edge disconnects the graph. This
lead us to the following definition.
Not every edge is a bridge. For instance, if we remove the edge ab in Fig. 11, the
resulting graph is not disconnected. This also holds for the graph given in Fig. 12,
which represents the roads connecting the main towns in a state.
33
Graph Theory
Fig.12
In this case no edge is a bridge since there always exist alternative connections.
Fig.13
Let us consider the graph given in Fig.11 again. This graph is connected. Here, if we
remove the edge de, then the resulting graph gets disconnected, the number of
components becoming 2. On the other hand, if we remove the edge dc, then the graph
does not get disconnected. Note that the edge dc belongs to the cycle {a, b, c, d, a},
but the edge de does not belong to any such cycle. The cycle seems to provide an
alternative connection between the vertices c and d.
While doing E13, you have obtained many graphs which do not have a bridge. To
disconnect such a graph we need to remove more than one edge. Therefore, given a
graph, it is natural to ask how many edges need to be removed before it gets
disconnected. This leads us to the following definition.
For example, the edge-connectivity of any graph with a bridge is 1. Let us consider
another kind of example.
Solution: First note that this graph does not have any bridges. Therefore its edge-
connectivity is more than 1. Now, if we remove the edges xz, zy, then the graph gets
34
disconnected. Similarly, there are other sets of two edges, namely, {xv, vu}and {uw, Connectedness
wy}, the removal of which disconnects G. Therefore, the edge connectivity of G is 2.
***
Note : In the context of computer networks, the edge-connectivity of a graph
representing such a network gives the number of link failures that can be tolerated
before the network becomes disconnected.
Fig.15
The set {uw, ux, vx} and {uw, wx, xz} are cutsets for this graph. However, the set
{uw, wx, xz, yz} is not a cutset since this set has a subset {uw, wx, xz}, the removal
of which disconnects G.
Note : 1) Two cutsets of a graph need not have the same number of edges. For
example, the sets {uw, ux, vx} and {wy, xz} are both cutsets of the graph in Fig.15.
E16) Which of the following sets of edges are cutsets of the graph given in Fig.16,
and what is the edge-connectivity of the graph ?
i) {su, sv}, ii) {uv, wx, yz}, iii) {ux, vx, wx, yz},
iv) {yt}, v) {wx, xz, yz}, vi) {uw, wx, wy}
Fig.16
We can also think of connectivity in terms of the minimum number of vertices which
need to be removed in order to disconnect a graph. Remember that, when we remove
an edge, we do not remove its end vertices. However, when we remove a
35
Graph Theory vertex, then any edge incident with that vertex also gets removed.
E18) Find the vertex-connectivity and a vertex-cutset for the graph given in Fig.16.
We shall now introduce you to another type of graph which underlies many computer,
and other, applications.
Four persons x1, x2, x3 and x4 are available to fill five jobs y1, y2, y3, y4 and y5. x1 is
qualified for the jobs y1 and y2; x2 is qualified for the jobs y1 and y3; x3 is qualified for
the job y4; and x4 is qualified for the jobs y2, y3 and y5. The assignment problem is
concerned with the following questions:
i) Can each person be assigned to a single job for which she is qualified?
ii) If so, how should the assignment be made?
iii) If assigning to a single job is not possible, at most how many jobs should be
assigned to each person ?
The problem of the kind stated above is known as an assignment problem. To solve
this problem it is convenient to consider the following graph-theoretic model of the
situation (see Fig.17).
Fig.17
The graph G, representing the problem, has an edge joining xi and yj if xi is qualified
for the job yj. Then the problem of assigning people to jobs for which they are
36
qualified is equivalent to the problem of selecting a subset of the set of edges Connectedness
such that each x will be connected to exactly one y by one of these edges.
Now, if you look at the graph given in Fig.17, you will see that the set of its vertices
can be divided into two disjoint subsets such that no two vertices in a subset are
adjacent. Let us formally define such graphs.
Bipartite graphs are useful in studying various real-life problems, including neural
networks. One model that emulates the essential working of the network using graph
theory is given in Fig.18. As you can see, this is a bipartite graph, so that the
properties of bipartite graphs are useful for studying this model.
Fig.18
Solution : In Fig.19 we show C6. Since V(C6) can be partitioned into {a, c, e} and
{b, d, f}, C6 is bipartite.
***
Note that in a bipartite graph G(X,Y), it is not necessary that each vertex of X is Fig.19 : C6 is
e joined to each vertex of Y. For instance, in C6 in Fig.19, a is not joined to d. This bipartite
leads us to the following definition.
Now, given a bipartite graph, you may wonder if the bipartition is unique. The
following example will give you an answer to this question.
Fig.21
Solution: The vertex set is {x1, x2, y1, y2, y3, z1, z2}.
One way of partitioning this can be by taking X = {x1, x2, z2}, Y = {z1, y1, y2, y3}.
Another way can be X1 = {x1, x2, y3}, Y1 = {z2, z1, y1, y2}.
Both these partitions make G bipartite.
***
Note that the graph in Fig.21 is not connected. Had it been connected it would not
have been possible to find more than one bipartition of G. In fact, we have the
following theorem.
We shall now state a theorem, which gives a characterisation for bipartite graphs.
Theorem 5: A graph G is bipartite if and only if G does not contain any cycle of
odd length as a subgraph.
This result is very useful. For instance, using it we know that Cn is not bipartite
whenever n is odd.
E19) Check whether the hypercube Q3 and the star graphs are bipartite.
38
Let us now go back to the assignment problem. In that problem we are interested in Connectedness
finding those special subgraphs of the associated bipartite graph which give a solution
to the problem. We have defined such subgraphs below.
For example, Fig.22 shows a bipartite graph and one of its matchings. Can you find
any other matching? We leave this as an exercise for you to check (see E 23 ).
(a) (b)
Fig.22 : a) G is bipartite; b) A matching in G
Is the matching given in Fig.22 (b) a complete matching? No, because in this
matching, the vertex 4 is not included.
Let us apply this theorem to the assignment problem in the following example.
Example 6 : Verify the conditions of Theorem 6 for the assignment problem given at
the beginning of this section (see Fig.17).
Solution : To check the theorem we have to consider all subsets of the vertex set X =
{x1,x2,x3,x4}, their cardinality, the corresponding sets R(A), and their cardinality.
Table 1 gives a list of all the possibilities.
39
Graph Theory Table 1
A A R(A) R (A )
φ 0 φ 0
{x1} 1 {y1,y2} 2
{x2} 1 {y2,y3} 2
{x3} 1 {y4} 1
{x4} 1 {y2,y3,y5} 3
{x1,x2} 2 {y1,y2,y3} 2
{x2,x3} 2 {y1,y3,y4} 2
{x3,x4} 2 {y2,y3,y4,y5} 4
{x1,x4} 2 {y1,y2,y3,y5} 4
{x2,x4} 2 {y1,y2,y3,y5} 4
{x1,x3} 2 {y1,y2,y4} 3
{x1,x2,x3} 3 {y1,y2,y3,y4} 4
{x2,x3,x4} 3 {y1,y2,y3,y4,y5} 5
{x1,x3,x4} 3 {y1,y2,y3,y4} 4
{x1,x2,x4} 3 {y1,y2,y3,y5} 4
{x1,x2,x3,x4} 4 {y1,y2,y3,y4,y5} 5
It shows that the condition A ≤ R (A) is satisfied for all subsets A of X. Hence the
condition of Theorem 6 is satisfied. This shows that there exists a complete matching
from X into Y for the assignment problem. Therefore, the assignment problem is
solved.
***
You can now try an exercise.
E 23) For the bipartite graph given in Fig.22, find a matching, apart from the given
one. Does the graph have a complete matching ? Give reasons for your
answer.
Let us now see another type of graph which has come into prominence because of its
applications to electrical networks.
2.4 TREES
We are all familiar with the idea of a family tree. The concept of a tree in graph theory
first arose in connection with work of a mathematician G. Kirchoff on electric
networks in the 1840s, and with the work of another mathematician Cayley on the
enumeration of chemical molecules in the 1870s. More recently, trees are used in
many areas, ranging from linguistics to computing. For instance, trees are used to
study the following problems :
• How should items in a list be stored so that an item can be easily located ?
• How should a set of characters be efficiently coded by bit strings ?
So, let us begin our study of trees by considering the following graphs.
G H
Fig.23
40
Can you find any difference in their structures ? You might have noticed that G is Connectedness
disconnected, and has no cycles. On the other hand, H is connected and has no cycles.
From the following definition you will see that H is an example of a tree.
Fig.24 shows a graph with four components, each of which is a tree. Hence, the graph
is a forest.
Fig.24
A tree has several defining properties which we shall list in the following theorem.
Theorem 7 : Let G be a graph with n vertices. Then the following statements are
equivalent.
i) G is a tree.
ii) G has no cycles and has (n − 1) edges.
iii) G is connected and has (n − 1) edges.
iv) G is connected and every edge is a bridge.
v) Any two vertices of G are connected by exactly one path.
Proof : If n = 1, all the five results are trivial. We shall, therefore, assume that
n ≥ 2. Now, from your study of mathematical logic you know that if we prove
(i) ⇒ (ii), (ii) ⇒ (iii), (iii) ⇒ (iv), (iv) ⇒ (v) and (v) ⇒ (i), then all the statements
will be proved to be equivalent. So, let us prove the implications one by one.
(i) ⇒ (ii) : By definition, G does not have any cycles. We shall show that G has
(n − 1) edges, by induction.
If n = 2, then the number of edges is 1. Therefore, the result is true for n = 2.
So, now let us assume that every tree on p vertices has (p − 1) edges for any positive
integer p such that 2 ≤ p < n. Then we have to show that every tree on n vertices has
(n − 1) edges.
Now suppose we remove any edge. Since G has no cycles, the removal of any edge
disconnects G into two graphs G1 and G2, such that G1 and G2 are connected and have
no cycles. Therefore, G1 and G2 are trees and each has less than n vertices.
Let n1 and n2 be the vertices in G1 and G2. Then n1 + n2 = n.
Since n1 and n2 are less than n, by our induction assumption, the number of edges in
G1 and G2 are n1 − 1 and n2 − 1, respectively. Therefore, the total number of
edges in both the graphs is n1 + n2 −2 = n − 2. These edges, together with the
edge which is removed, will give the total number of edges in the original graph.
Therefore, the total number of edges in G is n − 1.
Thus, we have shown that every tree on n vertices has n − 1 edges. By induction, this
is true for all n.
(ii) ⇒ (iii) : Suppose that G is disconnected. Let c(G) = t > 1. Let G1,G2,…,Gt be the
components of G such that the number of vertices in each Gi is pi for i = 1,2,…,t, and
the number of edges in each Gi is qi, for i = 1,2,…,t. Then
p = p1 + p2 +…+ pt, q = q1+…+qt.
41
Graph Theory Now, since every Gi is connected and without cycles, Gi is a tree for i = 1,2,…,t.
Therefore, by what we have shown while proving (i) ⇒ (ii), qi = pi − 1 ≤ i ≤ t. Then
p − 1 = q = q1 + … + qt = p − t.
That is, t = 1, which contradicts our assumption that t > 1. Therefore, G is connected.
(iii) ⇒ (iv) : Suppose there is an edge which is not a bridge. Then the removal of that
edge will result in a graph with n vertices and (n−2) edges. This is not possible when
G is connected, by Corollary 1 to Theorem 3. Therefore, every edge is a bridge.
(iv) ⇒ (v) : Since T is connected, each pair of vertices is connected by at least one
path. If a given pair of vertices is connected by two paths, then they form a cycle,
which contradicts the fact that every edge is a bridge. Therefore, there is a unique path
joining any two vertices.
(v) ⇒ (i) : We are assuming that any two vertices are connected by a unique path. So,
the graph G is connected. Now, suppose G contains a cycle C = {x0,x1,…,xn = x0}.
Then we can find two distinct paths P1 = {x0,x1} and P2 = {x0,xn−1,…,x2,x1}
connecting the vertices x0 and x1, which contradicts our assumption. Therefore, G
does not contain any cycle, and hence, is a tree.
Fig.25
The theorem above tells us that a tree has got several nice properties which a general
graph does not have. In fact, the importance of trees in graph theory is that every
connected graph contains a tree which has all the vertices of the original graph, as you
will now see.
Let us consider a connected graph G. Consider a cycle in it and remove one of its
edges such that the resulting graph stays connected. We repeat this procedure with one
of the remaining cycles, continuing until there are no cycles left. The graph which
remains is a connected subgraph of G which does not have any cycle. Therefore, it is a
tree. Note that this tree has all the vertices of G. Such a graph is called a spanning tree,
as you will realize from the following definition.
Definition : A spanning tree for a graph G is a subgraph of G which contains all the
vertices of G and is a tree.
This concept is useful for finding, for example, the minimum number of roads to be
kept open to maintain connections in a given transport network.
Now, the question is whether every graph has a spanning tree. The following theorem,
the proof of which is omitted, tells us about this.
42
The theorem above tells us that in a graph with k components, each component will Connectedness
have a spanning tree. Because of this result and because of the special structure of
trees, in trying to prove a general result in graph theory, it is sometimes convenient to
try to prove the corresponding result for a tree. The general result would, then, follow.
Note : A spanning tree is not unique. For instance, Fig. 26 shows a connected graph
G and two of its spanning trees, T1 and T2.
Fig.26
Fig.27
For data to reach receiving computers as quickly as possible, there should be no loops
(which in graph theory terminology are circuits or cycles) in the path that data take
through the network. That is, once data have reached a particular router, data should
never return to this router. To avoid loops, the multicast routers use network
algorithms to construct a spanning tree in the graph that has the multicast source, the
routers, and the subnetworks containing receiving computers as vertices, with edges
representing the links between computers and/or routers.
So far we have seen three types of graphs : connected graphs, bipartite graphs and
trees. You will see several other types of graphs in the following units. Let us now
summarise what we have covered in this unit.
43
Graph Theory
2.5 SUMMARY
In this unit we have discussed the following points.
1) The definition and use of the terms ‘walk’, ‘path’ and ‘cycle’ in a graph. We
have also proved and used the fact that in every u-v walk there is a u-v path.
7) The proof and application of the statement that a graph G with n vertices is a
tree iff it has no cycles and has (n−1) edges iff it is connected and has (n−1)
edges.
2.6 SOLUTIONS/ANSWERS
E1) {u, uv, ux, x, xy, y, yv, v, vb, b, bu, u, uv, v} is a walk of length 7. This is not
the only one. Think of some others too.
E2) False. For instance, in a cycle all the edges are distinct, not all the vertices.
E3) i) It is easy to find examples if you draw the walk. One example is
{u,x,w,z,y,x,w,v}. There are other examples.
iii) W0 = {u,t,w,x,u} is a cycle such that all other cycles have length
greater than l (W0).
E4) We use induction on k. If k = 1, then every vertex has at least one neighbour.
Thus, there exists a path of length 1 starting at any vertex.
Now, by induction, assume that in every graph H with δ( H) ≥ (k − 1) , there is
a path of length (k−1) starting at any given vertex.
Let G be a path with δ(G ) ≥ k (> 1). Let x0 be any vertex in G. Choose any
edge e1 incident on x0. Consider G−e1. Removal of one edge reduces only the
degree of its end vertices by one. Thus, δ(G − e1 ) ≥ (k − 1) . Thus, by
induction, there is a path {x1,e2,…,ek,xk} of length (k−1) in G1. Moreover,
since the degree of xk−1 is at least k, we can choose xk different from
x0,x1,…,xk−2. Also {x0,e1,x1,e2,…,xk} is a path of length k in G starting from
x0. Therefore, there exists a path of length k starting at any vertex in G.
44
Since this is true for all k, the result follows. Connectedness
E8) The statement is false. For example, consider the graph K3 given in Fig.28(a).
The subgraph of this graph obtained by deleting the edges v1v3 and v2v3, given
in Fig.28(b), is not connected.
Fig.28
E9) i) The graphs having single vertices a,b,c,d,e,f, and the graphs
having the following vertices and edges
i) V = {a,b}, E = {ab}
ii) V = {a,c}, E = {ac}
iii) V = {c,d}, E = {cd}
iv) V = {c,f}, E = {cf}
v) V = {d,c,a}, E = {dc,ca}
vi) V = {b,a,c}, E = {ba,ac}
vii) V = {a,b,c,d}, E = {ab,ac,cd}
ii) Two components are the graph formed by the vertices a,b,c and d, and
the graph formed by the vertices e and f. They are disjoint, for if they
have a vertex in common the two component graphs would be
connected.
E10) An example each is given below. You can think of many others.
Fig.29 : K3 ∪ K4 ∪ K1 ∪ K5
Fig.30
E11) No, since each component must contain at least one vertex.
45
Graph Theory E12) In (a) there is only one bridge given by bc. In (b) there are several
bridges, e.g., u1u3, u3u6, u5u6.
E13) None.
E15) λ(G ) = 3.
E16) The sets given in (i), (iii), (iv) and (vi) are cutsets. The set given in (ii) is not a
cutset, since its removal does not disconnect the graph; the set given in (v) is
also not a cutset, since we can disconnect the graph by removing just xz and
yz.
E19) Q3 does not contain any odd cycle. Therefore, by Theorem 5, it is bipartite.
The star network with n+1 vertices is K1, n , and hence, is bipartite.
ii) No, e.g., the complement of G given in Fig.21 contains C7. So, by
Theorem 5, G is not bipartite.
E22) Let Gi,1 ≤ i ≤ n , be bipartite graphs with the bipartitions V(Gi) = Xi ∪ Yi,
n n
respectively. Let G = Ui =1
G i . Then E(G) is the disjoint union U E (G ) .
i =1
i
n n
V(G) = A ∪ B, where A = U X i and B = UY i , is a bipartition of V(G). This
i =1 i =1
can be seen as follows :
Let e be an edge in E(G). Since E(G) is a disjoint union of E(G1),…,E(Gn), the
edge e belongs to only one of them. Without loss of generality, suppose
e ∈ E(G r ) . Since Gr is bipartite with a bipartition X r ∪ Yr , this means e has
one end vertex in Xr and the other in Yr, that is, e has one end vertex in A and
the other in B. Thus, G is bipartite with a bipartition A ∪ B.
46
Connectedness
Fig.31
E25) The ones in (a) and (c) are trees by Condition (iii), Theorem 7. The one in (b)
is not, for the same reason. The one in (d) is not because it contains C5.
E26)
Fig.32
E27) Yes. Since a tree does not have any cycles, by Theorem 5 it is a bipartite
graph.
47