0% found this document useful (0 votes)
84 views10 pages

Lecture 05 Graph Theory

This document defines several key terms related to graphs: - Paths, cycles, walks and their properties like length are defined. - Distance between vertices, eccentricity of a vertex, radius and diameter of a graph are defined. - Connectedness of graphs is discussed, including connected components and disconnected graphs. Bipartite graphs are characterized as having no odd cycles. - A graph is disconnected if its vertex set can be partitioned into two subsets with no edges between them.

Uploaded by

Malik Shaan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views10 pages

Lecture 05 Graph Theory

This document defines several key terms related to graphs: - Paths, cycles, walks and their properties like length are defined. - Distance between vertices, eccentricity of a vertex, radius and diameter of a graph are defined. - Connectedness of graphs is discussed, including connected components and disconnected graphs. Bipartite graphs are characterized as having no odd cycles. - A graph is disconnected if its vertex set can be partitioned into two subsets with no edges between them.

Uploaded by

Malik Shaan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

3.

Connectedness of Graphs

3.1 Paths, Cycles and Distances in Graphs


Definition 3.1.1 — Walks. A walk in a graph G is an alternating sequence of vertices and
connecting edges in G. In other words, a walk is any route through a graph from vertex to
vertex along edges. If the starting and end vertices of a walk are the same, then such a
trail is called a closed walk.

A walk can end on the same vertex on which it began or on a different vertex. A walk can
travel over any edge and any vertex any number of times.

Definition 3.1.2 — Trails and Tours. A trail is a walk that does not pass over the same
edge twice. A trail might visit the same vertex twice, but only if it comes and goes from a
different edge each time. A tour is a trail that begins and ends on the same vertex.

Definition 3.1.3 — Paths and Cycles. A path is a walk that does not include any vertex
twice, except that its first vertex might be the same as its last. A cycle or a circuit is a path
that begins and ends on the same vertex.

Definition 3.1.4 — Length of Paths and Cycles. The length of a walk or circuit or path
or cycle is the number of edges in it.

A path of order n is denoted by Pn and a cycle of order n is denoted by Cn . Every edge of


G can be considered as a path of length 1. Note that the length of a path on n vertices is n − 1.
24 Chapter 3. Connectedness of Graphs

A cycle having odd length is usually called an odd cycle and a cycle having even length
is called an even cycle.

Definition 3.1.5 — Distance between two vertices. The distance between two vertices
u and v in a graph G, denoted by dG (u, v) or simply d(u, v), is the length (number of edges)
of a shortest path (also called a graph geodesic) connecting them. This distance is also
known as the geodesic distance.

Definition 3.1.6 — Eccentricity of a Vertex. The eccentricity of a vertex v, denoted by


ε(v), is the greatest geodesic distance between v and any other vertex. It can be thought of
as how far a vertex is from the vertex most distant from it in the graph.

Definition 3.1.7 — Radius of a Graph. The radius r of a graph G, denoted by rad(G),


is the minimum eccentricity of any vertex in the graph. That is, rad(G) = min ε(v).
v∈V (G)

Definition 3.1.8 — Diameter of a Graph. The diameter of a graph G, denoted by


diam(G) is the maximum eccentricity of any vertex in the graph. That is, diam(G) =
max ε(v).
v∈V (G)

Here, note that the diameter of a graph need not be twice its radius unlike in geometry. We
can even see many graphs having same radius and diameter. Complete graphs are examples
of the graphs with radius equals to diameter.

Definition 3.1.9 — Center of a Graph. A center of a graph G is a vertex of G whose


eccentricity equal to the radius of G.

Definition 3.1.10 — Peripheral Vertex of a Graph. A peripheral vertex in a graph of


diameter d is one that is distance d from some other vertex. That is, a peripheral vertex is
a a vertex that achieves the diameter. More formally, a vertex v of G is peripheral vertex
of a graph G, if ε(v) = d.

For a general graph, there may be several centers and a center is not necessarily on a
diameter.
The distances between vertices in the above graph are given in Table 3.1. Note that a
vertex vi is represented by i in the table (to save the space).
Note that the radius of G is given by r(G) = minε(v) = 4 and the diameter of G is
given by diam(G) = maxε(v) = 6 and all eight central vertices are represented by white
vertices in Figure 3.1.

Definition 3.1.11 — Geodetic Graph. A graph in which any two vertices are connected
by a unique shortest path is called a geodetic graph.
Lecture Notes on Graph Theory 25

v10 v9 v8 v7 v6

v16

v11 v12 v14 v15

v13

v1 v2 v3 v4 v5

Figure 3.1: A graph with eight centers.

v 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ε
1 0 1 2 3 4 6 5 4 3 4 2 3 3 4 4 4 6
2 1 0 1 2 3 5 4 3 2 3 1 2 2 3 3 3 5
3 2 1 0 1 2 4 3 4 3 4 2 2 1 1 2 3 4
4 3 2 1 0 1 3 2 3 4 5 5 3 2 2 1 3 5
5 4 3 2 1 0 4 3 4 5 6 4 4 3 3 2 4 6
6 6 5 4 3 4 0 1 2 3 4 4 4 4 3 2 3 6
7 5 4 3 2 3 1 0 1 2 3 3 3 3 2 1 2 5
8 4 3 4 3 4 2 1 0 1 2 2 2 3 2 2 1 4
9 3 2 3 4 5 3 2 1 0 1 1 2 3 3 3 2 5
10 4 3 4 5 6 4 3 2 1 0 2 3 4 4 4 3 6
11 2 1 2 3 4 4 3 2 1 1 0 1 2 3 4 2 4
12 3 2 2 3 4 4 2 1 2 3 1 0 1 2 3 1 4
13 3 2 1 2 3 4 3 3 3 4 2 1 0 1 2 2 4
14 4 3 2 2 3 3 2 2 3 4 3 2 1 0 1 1 4
15 4 3 2 1 2 2 1 2 3 4 4 3 2 1 0 2 4
16 4 3 3 3 4 3 2 1 2 3 2 3 2 1 2 0 4

Table 3.1: Eccentricities of vertices of the graph in Figure 3.1.

Theorem 3.1.1 If G is a simple graph with diam(G) ≥ 3, then diam(Ḡ) ≤ 3.

Proof. If diam(G) ≥ 3, then there exist at least two non-adjacent vertices u and v in G
such that u and v have no common neighbours in G. Hence, every vertex x in G − u, v is
non-adjacent to u or v or both in G. This makes x adjacent to u or v or both in Ḡ. Moreover,
uv ∈ E(Ḡ). So, for every pair of vertices x, y, there is an x, y path of length at most 3 in Ḡ
through the edge uv. Hence, diam(Ḡ) ≤ 3. 

3.2 Connected Graphs


Definition 3.2.1 — Connectedness in a Graph. Two vertices u and v are said to be
connected if there exists a path between them. If there is a path between two vertices u and
v, then u is said to be reachable from v and vice versa. A graph G is said to be connected
26 Chapter 3. Connectedness of Graphs

if there exist paths between any two vertices in G.

Definition 3.2.2 — Component of a Graph. A connected component or simply, a com-


ponent of a graph G is a maximal connected subgraph of G.

Each vertex belongs to exactly one connected component, as does each edge. A connected
graph has only one component.
A graph having more than one component is a disconnected graph (In other words, a
disconnected graph is a graph which is not connected). The number of components of a graph
G is denoted by (G).
In view of the above notions, the following theorem characterises bipartite graphs.

Theorem 3.2.1 A connected graph G is bipartite if and only if G has no odd cycles.

Proof. Suppose that G is a bipartite graph with bipartition (X,Y ). Assume for contradiction
that there exists a cycle v1 , v2 , v3 ,       , vk , v1 in G with k odd. Without loss of generality, we
may additionally assume that v1 ∈ X. Since G is bipartite, v2 ∈ Y , v3 ∈ X, v4 ∈ Y and so on.
That is, vi ∈ X for odd values of i and vi ∈ Y for even values of i. Therefore, vk ∈ X. But,
then the edge vk , v1 ∈ E is an edge with both endpoints in X, which contradicts the fact that
G is bipartite. Hence, a bipartite graph G has no odd cycles.
Conversely, assume that G is a graph with no odd cycles. Let d(u, v) denote the distance
between two vertices u and v in G. Pick an arbitrary vertex u ∈ V and define X = x ∈
V (G) : d(x, u) is even. Clearly, u ∈ X as d(u, u) = 0. Now, define another Y = y ∈ V (G) :
d(u, y) is odd. That is, Y = V − X. If possible, assume that there exists an edge vw ∈ E(G)
such that v, w ∈ X (or v, w ∈ Y ). Then, by construction d(u, v) and d(u, w) are both even (or
odd). Let P(u, w) and P(u, v) be the shortest paths connecting u to w, and u to v respectively.
Then, the cycle given by P(u, w)  wv  P(v, u) has odd length 1 + d(u, w) + d(u, v), which
is a contradiction. Therefore, no such edge wv may exist and G is bipartite. 

Theorem 3.2.2 A graph G is disconnected if and only if its vertex set V can be partitioned
into two non-empty, disjoint subsets V1 and V2 such that there exists no edge in G whose
one end vertex is in subset V1 and the other in the subset V2 .

Proof. Suppose that such a partitioning exists. Consider two arbitrary vertices u and v of
G, such that u ∈ V1 and v ∈ V2 . No path can exist between vertices u and v; otherwise, there
would be at least one edge whose one end vertex would be in V1 and the other in V2 . Hence,
if a partition exists, G is not connected.
Conversely, assume that G is a disconnected graph. Consider a vertex u in G. Let V1
be the set of all vertices that are joined by paths to u. Since G is disconnected, V1 does not
include all vertices of G. The remaining vertices will form a (nonempty) set V2 . No vertex in
V1 is joined to any vertex in V2 by an edge. Hence, we get the required partition. 
Lecture Notes on Graph Theory 27

Theorem 3.2.3 If a graph has exactly has two vertices of odd degree, then there exists a
path joining these two vertices.

Proof. Let G be a graph with two vertices v1 and v2 of odd degree and all other vertices of
even degree. Then, by Theorem 1.2.3, both of them should lie in the same component of G.
Since every component of G must be connected, there must be a path between v1 and v2 . 

Theorem 3.2.4 Let G be a graph with n vertices and k components. Then, G has at most
1
2 (n − k)(n − k + 1) edges.

Proof. Let G be a graph with n vertices and k components. Let the number of vertices in
each of the k components of G be n1 , n2 ,    , nk respectively. Then we have,

n1 + n2 +    + nk = n; ni ≥ 1 (3.1)

First, note that any connected graph on n vertices must have at least n − 1 edges. The proof
k
of the theorem is based on the inequality ∑ n2i ≤ n2 − (k − 1)(2n − k), which can be proved
i=1
as follows.

k
∑ (ni − 1) = n−k
i=1
( )2
k
∑ (ni − 1) = (n − k)2
i=1
k
∑ (n2i − 2ni ) + k + non-negative cross terms = n2 + k2 − 2nk
i=1
k k
∑ n2i − 2 ∑ ni + k ≤ n2 + k2 − 2nk
i=1 i=1
k
∑ n2i − 2n + k ≤ n2 + k2 − 2nk
i=1
k
∑ n2i ≤ n2 + k2 − 2nk + 2n − k
i=1
k
∴ ∑ n2i ≤ n2 − (k − 1)(2n − k)
i=1

Hence, we have
k
∑ n2i ≤ n2 − (k − 1)(2n − k) (3.2)
i=1

Now, note that the number edges in Kn is n(n−1)


2 . Hence, the maximum number of edges in
i-th component of G (which is a simple connected graph) is ni (n2i −1) . Therefore, the maximum
28 Chapter 3. Connectedness of Graphs

number of edges in G is

k k
ni (ni − 1) n2i − ni
∑ 2 = ∑ 2
i=1 i=1

1 k 2
= ∑ (ni − ni )
2 i=1
 
1 k 2 k
= ∑ ni − ∑ ni
2 i=1 i=1
1 2 
≤ n − (k − 1)(2n − k) − n (By Eq. (3.1) and Ineq. (3.2))
2
1 2 
= n − 2nk + k2 + 2n − k − n
2
1 2 
= n − 2nk + k2 + n − k
2
1 
= (n − k)2 + (n − k)
2
1
= (n − k)(n − k + 1)
2

Problem 3.1 Show that an acyclic graph on n vertices and k components has n − k edges.
Solution. The solution follows directly from the first part of the above theorem.
(n−1)(n−2)
Problem 3.2 Show that every graph on n vertices having more than 2 edges is
connected.
Solution. Consider the complete graph Kn and v be an arbitrary vertex of Kn . Now remove all
n − 1 edges of Kn incident on v so that it becomes disconnected with Kn−1 as one component
and the isolated vertex v as the second component. Clearly, this disconnected graph has
(n−1)(n−2)
2 edges (all of which belong to the first component). Since all pairs of vertices in
the first component Kn−1 are any adjacent to each other, any new edge drawn must be joining
a vertex in Kn−1 and the isolated vertex v, making the revised graph connected. 

3.3 Edge Deleted and Vertex Deleted Subgraphs


Definition 3.3.1 — Edge Deleted Subgraphs. Let G(V, E) be a graph and F ⊆ E be a
set of edges of G. Then, the graph obtained by deleting F from G, denoted by G − F, is the
subgraph of G obtained from G by removing all edges in F. Note that V (G − F) = V (G).
That is, G − F = (V, E − F).

Note that any edge deleted subgraph of a graph G is a spanning subgraph of G.

Definition 3.3.2 — Vertex Deleted Subgraphs. Let W ⊆ V (G) be a set of vertices of G.


Then the graph obtained by deleting W from G, denoted by G −W , is the subgraph of G
Lecture Notes on Graph Theory 29

v10 v5
v5
v10
v9 v4 v1 v6 v9 v4 v1 v6

v8 v7 v8
v7
v3 v2 v3 v2
(a) G (b) G′ = G − v1 v6 , v2 v4 , v2 v7 .

Figure 3.2: A graph and its edge deleted subgraph.

obtained from G by removing all vertices in W and all edges incident to those vertices.
See Figure 3.3 for illustration of a vertex-deleted subgraph of a given graph.

v10 v5 v10
v9 v4 v1 v6 v9 v4

v8 v7 v8
v7
v3 v2 v3 v2
(a) G (b) G′ = G − v1 , v5 , v6 .

Figure 3.3: A graph and its edge deleted subgraph.

Cut-Edges and Cut-Vertices


Definition 3.3.3 — Cut-Edge. An edge e of a graph G is said to be a cut-edge or a bridge
of G if G − e is disconnected.

In the above graph G, the edge v4 v5 is a cut-edge, since G − v4 v5 is a disconnected graph.


The following is a necessary and sufficient condition for an edge of a graph G to be a cut
edge of G.

Theorem 3.3.1 An edge e of a graph G is a cut-edge of G if and only if it is not contained


in any cycle of G.

Proof. Let e = uv be a cut edge of G. Then, the vertices u and v must be in different
components of G − e. If possible, let e is contained in cycle C in G. Then, C − e is a path
between u and v in G − e, a contradiction to the fact that u and v are in different components
of G − e. Therefore, e can not be in any cycle of G.
30 Chapter 3. Connectedness of Graphs

v2 v6 v2 v6

v1 v8 v1 v8
v4 v5 v4 v5

v3 v7 v3 v7
(a) Connected graph G (b) G ◦ uv

Figure 3.4: Disconnected graph G − v4 v5

Conversely, assume that e is not in any cycle of G. Then, there is no (u, v)-path other than
e. Therefore, u and v are in different components of G − e. That is, G − e is disconnected and
hence e is a cut-edge of G. 

Definition 3.3.4 — Cut-Vertex. A vertex v of a graph G is said to be a cut-vertex of G if


G − v is disconnected.

v2 v6 v2 v6

v1 v8 v1 v8
v4 v5 v5

v3 v7 v3 v7
(a) Connected graph G (b) G ◦ uv

Figure 3.5: disconnected graph G − v4

In graph G, v4 is a cut-vertex as G − v4 is a disconnected graph. Similarly, v5 is also a


cut-vertex of G.
Since removal of any pendent vertex will not disconnect a given graph, every cut-vertex
will have degree greater than or equal to 2. But, note that every vertex v, with d(v) ≥ 2 need
not be a cut-vertex.

3.4 Exercises
1. Show that every uv-walk contains a uv-path.
2. Show that every closed walk contains a cycle.
Lecture Notes on Graph Theory 31

3. Show that every graph with n vertices and k edges, n > k has n − k components.
4. If every vertex of a graph G has degree greater than or equal to 2, then G has some
cycles.
5. If G is a simple graph with d(v) ≥ k, ∀ v ∈ V (G), then G contains a path of length at
least k. If k ≥ 2, then G contains a cycle of length k + 1.
6. Show that if G is simple and δ (G) ≥ k, then G has a path of length k.
7. If a connected graph G is decomposed into two subgraphs G1 and G2 , then show that
there must be at least one common vertex between G1 and G2 .
8. If we remove an edge e from a graph G and G − e is still connected, then show that e
lies along some cycle of G.
9. If the intersection of two paths is a disconnected graph, then show that the union of the
two paths has at least one circuit.
10. If P1 and P2 are two different paths between two given vertices of a graph G, then show
that P1 ⊕ P2 is a circuit or a set of circuits in G.
11. Show that the complement of a complete bipartite graph is the disjoint union of two
complete graphs.
12. For a simple graph G, with n vertices, if δ (G) = n−12 , then G is connected.
13. Show that any two longest paths in a connected graph have a vertex in common.
14. For k ≥ 2, prove that a k-regular bipartite graph has no cut-edge.
15. Determine the maximum number of edges in a bipartite subgraph of the Petersen graph.
16. If H is a subgraph of G, then show that dG (u, v) ≤ dH (u, v).
17. Prove that if a connected graph G has equal order and size, then G is a cycle.
18. Show that eccentricities of adjacent vertices differ by at most 1.
19. Prove that if a graph has more edges than vertices then it must possess at least one
cycle.
20. If the intersection of two paths is a disconnected graph, then show that the union of the
two paths has at least one cycle.
21. The radius and diameter of a graph are related as rad(G) ≤ diam(G) ≤ 2r(G).

22. Find the eccentricity of the vertices and the radius, the diameter and center(s) of the
following graphs:
32 Chapter 3. Connectedness of Graphs

You might also like