SlideShare a Scribd company logo
DR. ADEEL HASHMI
ASST. PROF., CSE 2ND SHIFT
MSIT
FCS (Graphs)
Graphs
⚫A graph G = (V, E) consists of V, a non-empty set of
vertices (or nodes) and E, a set of edges.
⚫Two vertices u and v in an undirected graph G are
called adjacent (or neighbors) in G if u and v are the
endpoints of an edge e of G.
⚫Edges that connect a vertex to itself are called loops.
Types of Graphs
⚫A graph in which each edge connects two different
vertices and where no two edges connect the same
pair of vertices is called a simple graph.
⚫Graphs that may have multiple edges connecting the
same vertices are called multigraphs. When there
are m directed edges, each associated to an ordered
pair of vertices (u, v), we say that (u, v) is an edge of
multiplicity m.
⚫Graphs that may include loops, and possibly multiple
edges connecting the same pair of vertices or a vertex
to itself, are sometimes called pseudo-graphs.
Types of Graphs (2)
⚫A directed graph / digraph (V,E) consists of a
nonempty set of vertices V and a set of directed edges
(or arcs) E. Each directed edge is associated with an
ordered pair of vertices. The directed edge associated
with the ordered pair (u, v) is said to start at u and
end at v. The converse of a directed graph is the
directed graph with directions of all edges reversed.
⚫So far the graphs we have introduced are
undirected graphs. Their edges are also said to be
undirected. A graph with both directed and
undirected edges is called a mixed graph.
Graph Representation
⚫A graph can be represented as either Adjacency
Matrix or Adjacency List or Incidence Matrix.
Graph Representation (2)
Graph Representation (3)
Degree of vertices
⚫ The degree of a vertex in an undirected graph is the
number of edges incident with it, except that a loop at a
vertex contributes twice to the degree of that vertex. The
degree of the vertex v is denoted by deg(v).
⚫ In a graph with directed edges the in-degree of a vertex
v, denoted by deg−(v), is the number of edges with v as
their terminal vertex. The out-degree of v, denoted by
deg+(v), is the number of edges with v as their initial
vertex. (Note that a loop at a vertex contributes 1 to both
the in-degree and the out-degree of this vertex.)
Question-1
Question-2
Hand-shaking theorem
Isomorphic
Two graphs are said to be isomorphic, if
⚫They have an equal number of vertices.
⚫They have an equal number of edges.
⚫They have an equal number of vertices for each
degree.
⚫The sub-graphs formed by vertices for a given
degree, also have equal number of vertices for each
degree.
Question-1
⚫ Are the following graphs isomorphic?
⚫ Both G and H have five vertices and six edges. However,
H has a vertex of degree one, namely, e, whereas G has
no vertices of degree one. It follows that G and H are not
isomorphic.
Question-2
⚫ Are the following
graphs isomorphic?
⚫ The graphs G and H both have
eight vertices and 10 edges.
They also both have four vertices
of degree two and four of degree three.
⚫ But it is not isomorphic,
as sub-graphs of vertices having
degree 3 are not isomorphic.
Connected Graphs
⚫A path/walk is a sequence of vertices/edges
e.g. v1v4v3v2 . A path which begins and ends at the
same vertex is called a cycle or a circuit.
⚫An undirected graph is called connected if there is
a path b/w every pair of distinct vertices of the
graph.
⚫A directed graph is strongly connected if there is a
path from a to b and from b to a whenever a and b
are vertices in the graph. A directed graph is weakly
connected if there is a path between every two
vertices in the underlying undirected graph.
Example
⚫ Are the following graphs connected?
⚫ G is strongly connected because there is a path between any two
vertices in this directed graph.
⚫ The graph H is not strongly connected. There is no path from a to b
in this graph. However, H is weakly connected, because there is a
path b/w any two vertices in the underlying undirected graph of H.
Connected Components
⚫ A connected component of a graph G is a maximal connected
subgraph of G.
⚫ If the removal of an edge from a graph results in a
disconnected graph, then it is called a cut-edge. Similarly, if
the removal of a vertex and all incident edges results in a
disconnected graph, then it is called a cut-vertex.
Cut-set
⚫ Find the cut vertices and cut edges in the graph G1 shown
in Figure.
⚫ The cut vertices of G1 are b, c, and e. The removal of one
of these vertices (and its adjacent edges) disconnects the
graph. The cut edges are {a, b} and {c, e}. Removing
either one of these edges disconnects G1.
Complete Graph
⚫A complete graph on n vertices, denoted by Kn, is a
simple graph that contains exactly one edge between
each pair of distinct vertices.
⚫Kn as n(n-1)/2 edges.
Bi-partite Graph
⚫A simple graph G is called bipartite if its vertex set
V can be partitioned into two disjoint sets V1 and V2
such that every edge in the graph connects a vertex
in V1 and a vertex in V2 (so that no edge in G
connects either two vertices in V1 or two vertices in
V2). When this condition holds, we call the pair (V1,
V2) a bipartition of the vertex set V of G.
Complete Bi-partite Graphs
⚫A complete bipartite graph Km,n is a graph that
has its vertex set partitioned into two subsets of m
and n vertices, respectively with an edge between two
vertices if and only if one vertex is in the first subset
and the other vertex is in the second subset.
Euler Path
⚫A Euler path in G is a simple path containing
every edge of G (each edge only once).
⚫A Euler circuit in a graph G is a simple circuit
containing every edge of G.
⚫A connected multi-graph with at least two vertices
has an Euler circuit if and only if each of its
vertices has an even degree.
⚫A connected multigraph has an Euler path but not
an Euler circuit if and only if it has exactly two
vertices of odd degree.
Example
⚫ Which of the undirected graphs in Fig. have a Euler
circuit? Of those that do not, which have a Euler path?
⚫ The graph G1 has Euler circuit(s), one such circuit is a, e,
c, d, e, b, a. Neither of the graphs G2 or G3 has an Euler
circuit. However, G3 has an Euler path, namely, a, c, d, e,
b, d, a, b. G2 does not have an Euler path.
Hamiltonian Path
⚫ A simple path in a graph G that passes through every
vertex exactly once is called a Hamiltonian path, and a
simple circuit in a graph G that passes through every
vertex exactly once is called a Hamiltonian circuit.
⚫ a, g, f, e, d, c, b, a is one of the Hamiltonian circuit.
⚫ a,b,g,c,f,d,e is one of th Hamiltonian path.
Planar Graph
⚫A graph is called planar if it can be drawn/re-drawn
in the plane without any edges crossing.
Homeomorphic
⚫If a graph is planar, so will be any graph obtained by
removing an edge {u, v} and adding a new vertex w
together with edges {u, w} and {w, v}. Such an
operation is called an elementary subdivision.
⚫The graphs G1 = (V1, E1) and G2 = (V2, E2) are
called homeomorphic if they can be obtained from
the same graph by a sequence of elementary
subdivisions.
Homeomorphic (2)
⚫A graph H homeomorphic to K5.
Kuratowski theorem
⚫A graph is nonplanar if and only if it contains
a subgraph homeomorphic to K3,3 or K5.
Example
⚫Check the graph shown in Fig for planarity.
Example (2)
⚫ The above graph is non-planar only if
its subgraph is homeomorphic to K5 or K3,3.
⚫ Let us try to find K3,3 in the given graph. We remove edges {a,b} {f,e} and
{g,h} to get a graph shown in Fig. We combine edges {a,g} and {g,d} to
obtain homeomorphic edge {a,d}.
⚫ The graph obtained is K3,3. Hence, the above given graph is non-planar.
Euler formula
⚫Let G be a connected planar simple graph with e
edges and v vertices. Let r be the number of regions
in a planar representation of G. Then
⚫r = e − v + 2.
⚫3 = 5 – 4 + 2
Euler formula (Proof by MI)
Euler formula (Proof) contd..
Theorem
⚫If G is a connected planar simple graph, then
G has at least one vertex of degree not
exceeding five.
Graph Coloring
⚫A coloring of a simple graph is the assignment of a
color to each vertex of the graph so that no two
adjacent vertices are assigned the same color.
⚫The chromatic number of a graph is the least
number of colors needed for a coloring of this graph.
The chromatic number of a graph G is denoted by 𝝌
(G). (Here 𝝌 is the Greek letter chi.)
Question
⚫ What is the chromatic number of the graph shown in Fig?
⚫ Let a=Red, b=Yellow, c=Green.
⚫ Now, d can be colored Red as it is not connected to a.
⚫ e can be colored Green as it is not connected to c.
⚫ f can be colored Yellow as it is not connected to b.
⚫ And, g can be colored Red as it is not connected to either a or d.
⚫ Hence, we can color the given graph by using at least 3 colors.
⚫ Hence, its chromatic number is 3.
Five-color theorem
⚫The chromatic number of a planar graph is
not greater than five.
Five-color theorem (Proof by MI)
⚫Basis step: Every graph with 5 or fewer vertices can
be colored with 5 or fewer colors.
⚫Inductive step: We know that every planar graph
has at least one vertex of degree not exceeding 5. We
take a graph with k+1 vertices (Gk+1) having a vertex
“v” with degree 5. We remove the vertex “v” to get a
graph with k vertices (Gk).
⚫We assume Gk to be 5-colorable, and prove that Gk+1
is also 5-colorable.
Proof (2)
Let above figure represent graph Gk+1, let the vertex with degree 5 or less be
denoted by “v”. In the graph given above, it has degree 5. We color all the
vertices adjacent to “v” with different colors (R=red, B=blue, G=green,
Y=yellow, O=orange).
Now, we remove vertex “v” from the above graph (Gk+1) to obtain graph Gk.
We assume, Gk to be 5-colorable.
Proof (3)
⚫ We select vertices colored Red and Green from Gk. Let’s
assume that these two vertices are connected (i.e. have a path
b/w them) with vertices of alternating colors Red & Green.
Proof (4)
⚫Now, we select vertices with colors Blue & Orange.
These two vertices cannot be connected (i.e. can’t
have a path b/w them) as then the paths of Red-
Green and Blue-Orange vertices will intersect, and
the graph will lose its property of planarity.
⚫If there is no path b/w Blue & Orange vertices, then
we can color both these vertices with the same color
i.e. either Blue or Orange, and free the other color.
This “freed” color can then be utilized to color vertex
“v” in Gk+1. So we free the orange color.
Proof (5)
Thank You

More Related Content

PDF
An introduction to the graph theory in discrete mathematics
PPTX
Graph theory
PPTX
Ds lec 5_chap4
PPTX
graph theory
PPTX
GRAPH THEORY - Basic definition with examples
PPTX
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
DOCX
Ass. (3)graph d.m
PDF
graph theory, DS, Tree, shortest path problem
An introduction to the graph theory in discrete mathematics
Graph theory
Ds lec 5_chap4
graph theory
GRAPH THEORY - Basic definition with examples
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Ass. (3)graph d.m
graph theory, DS, Tree, shortest path problem

Similar to FCS (graphs).pptx (20)

PPTX
Module-5 (Part 1), VTU, MCA Mathematical Foundations for Computer Application
DOC
Magtibay buk bind#2
PDF
Introduction to-graph-theory-1204617648178088-2
PPTX
Graph data structure
PPTX
Elements of Graph Theory for IS.pptx
PPT
Graph theory presentation
PPTX
GRAPH THEORY AND ITS APPLICATIONS.......
PPTX
Graph Theory
PPT
Graph-theory (1).ppt BBA 1st Semester Graph
PDF
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
PPTX
Unit 2: All
PPT
UNIT III discrete mathematice notes availiable
PPTX
1. Graph and Graph Terminologiesimp.pptx
PPTX
Lecture 1--Graph Algorithms -- Basics.pptx
PDF
Graph Dynamical System on Graph Colouring
PPTX
Graph ASS DBATU.pptx
PPT
graph ASS (1).ppt
PPT
graphass1-23022111180722548-1ba6b00a.ppt
PDF
Graph theory and its applications
PPTX
GRAPH THEORY PPT for students to re.pptx
Module-5 (Part 1), VTU, MCA Mathematical Foundations for Computer Application
Magtibay buk bind#2
Introduction to-graph-theory-1204617648178088-2
Graph data structure
Elements of Graph Theory for IS.pptx
Graph theory presentation
GRAPH THEORY AND ITS APPLICATIONS.......
Graph Theory
Graph-theory (1).ppt BBA 1st Semester Graph
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
Unit 2: All
UNIT III discrete mathematice notes availiable
1. Graph and Graph Terminologiesimp.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
Graph Dynamical System on Graph Colouring
Graph ASS DBATU.pptx
graph ASS (1).ppt
graphass1-23022111180722548-1ba6b00a.ppt
Graph theory and its applications
GRAPH THEORY PPT for students to re.pptx

Recently uploaded (20)

PPTX
Geodesy 1.pptx...............................................
PPTX
additive manufacturing of ss316l using mig welding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Digital Logic Computer Design lecture notes
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Welding lecture in detail for understanding
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Well-logging-methods_new................
PPTX
Construction Project Organization Group 2.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
Geodesy 1.pptx...............................................
additive manufacturing of ss316l using mig welding
bas. eng. economics group 4 presentation 1.pptx
Sustainable Sites - Green Building Construction
CYBER-CRIMES AND SECURITY A guide to understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
573137875-Attendance-Management-System-original
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Digital Logic Computer Design lecture notes
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Welding lecture in detail for understanding
OOP with Java - Java Introduction (Basics)
Well-logging-methods_new................
Construction Project Organization Group 2.pptx
R24 SURVEYING LAB MANUAL for civil enggi
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf

FCS (graphs).pptx

  • 1. DR. ADEEL HASHMI ASST. PROF., CSE 2ND SHIFT MSIT FCS (Graphs)
  • 2. Graphs ⚫A graph G = (V, E) consists of V, a non-empty set of vertices (or nodes) and E, a set of edges. ⚫Two vertices u and v in an undirected graph G are called adjacent (or neighbors) in G if u and v are the endpoints of an edge e of G. ⚫Edges that connect a vertex to itself are called loops.
  • 3. Types of Graphs ⚫A graph in which each edge connects two different vertices and where no two edges connect the same pair of vertices is called a simple graph. ⚫Graphs that may have multiple edges connecting the same vertices are called multigraphs. When there are m directed edges, each associated to an ordered pair of vertices (u, v), we say that (u, v) is an edge of multiplicity m. ⚫Graphs that may include loops, and possibly multiple edges connecting the same pair of vertices or a vertex to itself, are sometimes called pseudo-graphs.
  • 4. Types of Graphs (2) ⚫A directed graph / digraph (V,E) consists of a nonempty set of vertices V and a set of directed edges (or arcs) E. Each directed edge is associated with an ordered pair of vertices. The directed edge associated with the ordered pair (u, v) is said to start at u and end at v. The converse of a directed graph is the directed graph with directions of all edges reversed. ⚫So far the graphs we have introduced are undirected graphs. Their edges are also said to be undirected. A graph with both directed and undirected edges is called a mixed graph.
  • 5. Graph Representation ⚫A graph can be represented as either Adjacency Matrix or Adjacency List or Incidence Matrix.
  • 8. Degree of vertices ⚫ The degree of a vertex in an undirected graph is the number of edges incident with it, except that a loop at a vertex contributes twice to the degree of that vertex. The degree of the vertex v is denoted by deg(v). ⚫ In a graph with directed edges the in-degree of a vertex v, denoted by deg−(v), is the number of edges with v as their terminal vertex. The out-degree of v, denoted by deg+(v), is the number of edges with v as their initial vertex. (Note that a loop at a vertex contributes 1 to both the in-degree and the out-degree of this vertex.)
  • 12. Isomorphic Two graphs are said to be isomorphic, if ⚫They have an equal number of vertices. ⚫They have an equal number of edges. ⚫They have an equal number of vertices for each degree. ⚫The sub-graphs formed by vertices for a given degree, also have equal number of vertices for each degree.
  • 13. Question-1 ⚫ Are the following graphs isomorphic? ⚫ Both G and H have five vertices and six edges. However, H has a vertex of degree one, namely, e, whereas G has no vertices of degree one. It follows that G and H are not isomorphic.
  • 14. Question-2 ⚫ Are the following graphs isomorphic? ⚫ The graphs G and H both have eight vertices and 10 edges. They also both have four vertices of degree two and four of degree three. ⚫ But it is not isomorphic, as sub-graphs of vertices having degree 3 are not isomorphic.
  • 15. Connected Graphs ⚫A path/walk is a sequence of vertices/edges e.g. v1v4v3v2 . A path which begins and ends at the same vertex is called a cycle or a circuit. ⚫An undirected graph is called connected if there is a path b/w every pair of distinct vertices of the graph. ⚫A directed graph is strongly connected if there is a path from a to b and from b to a whenever a and b are vertices in the graph. A directed graph is weakly connected if there is a path between every two vertices in the underlying undirected graph.
  • 16. Example ⚫ Are the following graphs connected? ⚫ G is strongly connected because there is a path between any two vertices in this directed graph. ⚫ The graph H is not strongly connected. There is no path from a to b in this graph. However, H is weakly connected, because there is a path b/w any two vertices in the underlying undirected graph of H.
  • 17. Connected Components ⚫ A connected component of a graph G is a maximal connected subgraph of G. ⚫ If the removal of an edge from a graph results in a disconnected graph, then it is called a cut-edge. Similarly, if the removal of a vertex and all incident edges results in a disconnected graph, then it is called a cut-vertex.
  • 18. Cut-set ⚫ Find the cut vertices and cut edges in the graph G1 shown in Figure. ⚫ The cut vertices of G1 are b, c, and e. The removal of one of these vertices (and its adjacent edges) disconnects the graph. The cut edges are {a, b} and {c, e}. Removing either one of these edges disconnects G1.
  • 19. Complete Graph ⚫A complete graph on n vertices, denoted by Kn, is a simple graph that contains exactly one edge between each pair of distinct vertices. ⚫Kn as n(n-1)/2 edges.
  • 20. Bi-partite Graph ⚫A simple graph G is called bipartite if its vertex set V can be partitioned into two disjoint sets V1 and V2 such that every edge in the graph connects a vertex in V1 and a vertex in V2 (so that no edge in G connects either two vertices in V1 or two vertices in V2). When this condition holds, we call the pair (V1, V2) a bipartition of the vertex set V of G.
  • 21. Complete Bi-partite Graphs ⚫A complete bipartite graph Km,n is a graph that has its vertex set partitioned into two subsets of m and n vertices, respectively with an edge between two vertices if and only if one vertex is in the first subset and the other vertex is in the second subset.
  • 22. Euler Path ⚫A Euler path in G is a simple path containing every edge of G (each edge only once). ⚫A Euler circuit in a graph G is a simple circuit containing every edge of G. ⚫A connected multi-graph with at least two vertices has an Euler circuit if and only if each of its vertices has an even degree. ⚫A connected multigraph has an Euler path but not an Euler circuit if and only if it has exactly two vertices of odd degree.
  • 23. Example ⚫ Which of the undirected graphs in Fig. have a Euler circuit? Of those that do not, which have a Euler path? ⚫ The graph G1 has Euler circuit(s), one such circuit is a, e, c, d, e, b, a. Neither of the graphs G2 or G3 has an Euler circuit. However, G3 has an Euler path, namely, a, c, d, e, b, d, a, b. G2 does not have an Euler path.
  • 24. Hamiltonian Path ⚫ A simple path in a graph G that passes through every vertex exactly once is called a Hamiltonian path, and a simple circuit in a graph G that passes through every vertex exactly once is called a Hamiltonian circuit. ⚫ a, g, f, e, d, c, b, a is one of the Hamiltonian circuit. ⚫ a,b,g,c,f,d,e is one of th Hamiltonian path.
  • 25. Planar Graph ⚫A graph is called planar if it can be drawn/re-drawn in the plane without any edges crossing.
  • 26. Homeomorphic ⚫If a graph is planar, so will be any graph obtained by removing an edge {u, v} and adding a new vertex w together with edges {u, w} and {w, v}. Such an operation is called an elementary subdivision. ⚫The graphs G1 = (V1, E1) and G2 = (V2, E2) are called homeomorphic if they can be obtained from the same graph by a sequence of elementary subdivisions.
  • 27. Homeomorphic (2) ⚫A graph H homeomorphic to K5.
  • 28. Kuratowski theorem ⚫A graph is nonplanar if and only if it contains a subgraph homeomorphic to K3,3 or K5.
  • 29. Example ⚫Check the graph shown in Fig for planarity.
  • 30. Example (2) ⚫ The above graph is non-planar only if its subgraph is homeomorphic to K5 or K3,3. ⚫ Let us try to find K3,3 in the given graph. We remove edges {a,b} {f,e} and {g,h} to get a graph shown in Fig. We combine edges {a,g} and {g,d} to obtain homeomorphic edge {a,d}. ⚫ The graph obtained is K3,3. Hence, the above given graph is non-planar.
  • 31. Euler formula ⚫Let G be a connected planar simple graph with e edges and v vertices. Let r be the number of regions in a planar representation of G. Then ⚫r = e − v + 2. ⚫3 = 5 – 4 + 2
  • 34. Theorem ⚫If G is a connected planar simple graph, then G has at least one vertex of degree not exceeding five.
  • 35. Graph Coloring ⚫A coloring of a simple graph is the assignment of a color to each vertex of the graph so that no two adjacent vertices are assigned the same color. ⚫The chromatic number of a graph is the least number of colors needed for a coloring of this graph. The chromatic number of a graph G is denoted by 𝝌 (G). (Here 𝝌 is the Greek letter chi.)
  • 36. Question ⚫ What is the chromatic number of the graph shown in Fig? ⚫ Let a=Red, b=Yellow, c=Green. ⚫ Now, d can be colored Red as it is not connected to a. ⚫ e can be colored Green as it is not connected to c. ⚫ f can be colored Yellow as it is not connected to b. ⚫ And, g can be colored Red as it is not connected to either a or d. ⚫ Hence, we can color the given graph by using at least 3 colors. ⚫ Hence, its chromatic number is 3.
  • 37. Five-color theorem ⚫The chromatic number of a planar graph is not greater than five.
  • 38. Five-color theorem (Proof by MI) ⚫Basis step: Every graph with 5 or fewer vertices can be colored with 5 or fewer colors. ⚫Inductive step: We know that every planar graph has at least one vertex of degree not exceeding 5. We take a graph with k+1 vertices (Gk+1) having a vertex “v” with degree 5. We remove the vertex “v” to get a graph with k vertices (Gk). ⚫We assume Gk to be 5-colorable, and prove that Gk+1 is also 5-colorable.
  • 39. Proof (2) Let above figure represent graph Gk+1, let the vertex with degree 5 or less be denoted by “v”. In the graph given above, it has degree 5. We color all the vertices adjacent to “v” with different colors (R=red, B=blue, G=green, Y=yellow, O=orange). Now, we remove vertex “v” from the above graph (Gk+1) to obtain graph Gk. We assume, Gk to be 5-colorable.
  • 40. Proof (3) ⚫ We select vertices colored Red and Green from Gk. Let’s assume that these two vertices are connected (i.e. have a path b/w them) with vertices of alternating colors Red & Green.
  • 41. Proof (4) ⚫Now, we select vertices with colors Blue & Orange. These two vertices cannot be connected (i.e. can’t have a path b/w them) as then the paths of Red- Green and Blue-Orange vertices will intersect, and the graph will lose its property of planarity. ⚫If there is no path b/w Blue & Orange vertices, then we can color both these vertices with the same color i.e. either Blue or Orange, and free the other color. This “freed” color can then be utilized to color vertex “v” in Gk+1. So we free the orange color.