Module 5 Basic Concepts of Graph Theory
Module 5 Basic Concepts of Graph Theory
Aarthy B
Division of Mathematics,
School of Advanced Sciences,
Vellore Institute of Technology,
Chennai campus.
November 5, 2023
4 Graph Isomorphism
5 Degree Sequence
Graph
A graph is an ordered tuple (V (G ); E (G )) where
V (G ) = {v1 , v2 , v3 , . . . , vn } is a nonempty set and elements of this set are
called vertices, E (G ) is an 2-element subset of V (G ) and the elements of
E (G ) = {e1 , e2 , e3 , . . . , em } are called edges of G .
Types of Graphs
Basically There are thee types of graphs:
1 Directed graph: Graph with directions.
2 Undirected graph: Graph without directions.
(a) Simple graph (b) Graph with loops (c) Pseudo graph
Trivial graph
A graph with only one vertex.
Null graph
A graph with no edges. (also called as Empty graph or Totally
disconnected graph)
Remark
Every trivial graph is a null graph but the converse is not true.
Adjacent vertices
Two vertices are said to be adjacent if they share an edge.
Adjacent edges
Two edges are adjacent if they share a common vertex.
Incidence
A vertex is said to be incident with an edge if it is an end point of the
edge.
Degree
The degree of a vertex is the number of edges incident with the
vertex. The minimum of all degrees in a graph is Minimum degree (δ)
and the maximum of all degrees in a graph is Maximum degree (∆).
Isolated vertex
A vertex with degree 0.
Pendant vertex
A vertex with degree 1.
deg (v1 ) = 2, deg (v2 ) = deg (v3 ) = deg (v5 ) = 4, deg (v4 ) = 1,
deg (v6 ) = 3, deg (v7 ) = 0. We note that v4 is a pendant vertex and
v7 is an isolated vertex.
Theorem
n
P
For a graph G = (V , E ), deg (vi ) = 2m, where m represents the
i=1
number of edges in the graph G .
Corollary
Every graph has an even number of odd degree vertices.
Subgraph
A graph H is said to be a subgraph of G if V (H) ⊆ V (G ) and
E (H) ⊆ E (G ). It is denoted as h ⊆ G .
Remark
Empty graph of G is always a subgraph of G .
Every graph is a subgraph of itself.
Spanning subgraph
If V (H) = V (G ), then H is called a spanning subgraph of G . A
spanning subgraph of G need not contain all its edges.
Induced subgraph
A subgraph H = (V (H), E (H)) of G = (V , E ), where V (H) ⊆ V (G )
and E (H) consists of only those edges that are incident on the
elements of V (H), is called an induced subgraph of G .
Walk
A walk in a graph G is a finite sequence of the form
v1 e1 v2 e2 v3 e3 v3 · · · which consists of alternating vertices and edges of
G.
Trail
A walk is a said to be a trail if no edges are traversed more than once.
Path
A trail is a said to be a path if no vertices are visited more than once.
Cycle
A closed trail whose origin and internal vertices are distinct is a called
as a cycle (circuit).
Connected graph
A graph G is said to be connected if there is a path from any vertex
to any other vertex in the graph G .
Component
A subgraph of a graph is a component of G if the subgraph is
connected.
Disconnected graph
A graph which is not connected.
Complement
The complement G c of the simple graph G is a simple graph where
the edges in the complement are the non edges in the given graph.
Self-complementary
If the graph and its complement are same, then the graph is said to
self complementary.
Example
C5 (a cycle on 5 vertices) is Self-complementary.
Theorem
A finite graph is planar if and only if it does not contain a subgraph
K5 or K3,3 .
Adjacency matrix
If G is an undirected graph with n vertices v1 , v2 , v3 , · · · then the
n × n matrix A = [aij ] where
(
1, if (vi , vj ) ∈ E (G )
aij =
0, if (vi , vj ) ∈
/ E (G )
Incidence matrix
If G is an undirected graph with n vertices v1 , v2 , v3 , · · · and m edges
e1 , e2 , e3 , · · · then the n × m matrix B = [bij ] where
(
1, if ej is incident on vi
bij =
0, if ej is not incident on vi
Definition
Two graphs G (V1 , E1 ) and H(V2 , E2 ) are isomorphic if there is a
bijection f : V1 → V2 such that u and v are adjacent in G if and only
if f (u) and f (v ) are adjacent in H.
Theorem
Two graphs are isomorphic if and only if their vertices can be labeled
in such a way that the corresponding adjacency matrices are equal.
Figure: Problem 1
Figure: Problem 2
Figure: Problem 3
Figure: Problem 4
Aarthy B (VIT Chennai) GT November 5, 2023 50 / 82
Degree Sequence
Let S = (5, 5, 4, 3, 2, 1)
= (4, 3, 2, 1, 0)
= (2, 1, 0, -1) (After rearranging )
Let S = (3, 3, 3, 3, 2)
= (2, 2, 2, 2)
= (1, 1, 2)
After rearranging ,
= (2, 1, 1)
= (0, 0)
Vertex connectivity
Minimum number of vertices whose removal from G leaves the graph
disconnected. (denoted by κ(G ))
Edge connectivity
Minimum number of edges whose removal from G leaves the graph
disconnected. (denoted by λ(G ))
Whitney’s inequality
κ(G ) ≤ λ(G ) ≤ δ(G ).
Component
A subgraph which is connected is called a component.
Cut vertex
A cut point or cut vertex of a graph G is a vertex whose removal
increases the number of components.
Cut edge
A cut edge or bridge of a graph G is an edge whose removal increases
the number of components.
Block
A connected non-trivial graph having no cut point is a block.
Eulerian trail
A trail of graph G is called an Eulerian trail (namely, open trail), if it
includes each edge of G exactly once.
Eulerian cycle
A cycle of a graph G is called an Eulerian cycle, if it includes each
edge of G exactly once.
Eulerian graph
A graph containing an Eulerian cycle is called an Eulerian graph.
Theorem
A connected graph G contains an Eulerian trail (namely, open trail) if
and only if it has exactly two vertices of odd degree.
Hamiltonian path
A path of a graph G is called a Hamiltonian path, if it includes each
vertex of G exactly once.
Hamiltonian cycle
A cycle of a graph G is called a Hamiltonian cycle, if it includes each
vertex of G exactly once, except the starting and end vertices (which
are one and the same) which appear twice.
Hamiltonian graph
A graph containing a Hamiltonian cycle is called a Hamiltonian graph.
Weighted graph
A graph in which each edge ′ e ′ is assigned a non-negative real
number w (e) is called a weighted graph, w (e) is called weight of the
edge ′ e ′ may represent distance, time, cost etc., in some units.
Note
A shortest path between two vertices in a weighted graph is a path of
least weight. In an unweighted graph, a shortest path means one with
the least number of edges.