SlideShare a Scribd company logo
GRAPH THEORY
DISCRETE MATHEMATICS
Introduction
 Graph Theory is the study of points and lines.
 In particular, it involves the ways in which sets of
points, called vertices, can be connected by lines
called edges.
 Graph Theory has proven useful in the design of
integrated circuits for computers and other
electronic devices.
 Graph Theory was invented by Leonhard Euler.
Graphs And Basic Terminologies
 A Graph is an ordered pair G = (V, E) comprising
a set V of vertices, nodes or points together with a
set E of edges, arcs or lines, which are 2-element subsets
of V.
 An edge is associated with two vertices, and the
association takes the form of the unordered pair of the
vertices.
 A Graph may be directed or undirected, weighted or
unweighted.
 A Graph may be with self-loop or self-edge.
Example Of Graphs
(a)Undirected
Graph
a
b
c
d
a
b c
3 2
6 4
(b)Weighted
Graph
a
bc
(c)Directed
Graph
(d)Graph with
self-loop
a
be
cd
Types Of Graphs
Null Graph:
 A Graph which contains only isolated nodes(i.e. set of edges of graph
is empty) is called as Null Graph.
Regular Graph:
 A Graph in which each vertex has the same number of neighbours(i.e.
every vertex has the same degree) is called as Regular Graph.
 A Regular Graph with vertices of degree K is called a K -Regular
Graph or regular graph of degree K.
Complete Graph:
 A Complete Graph is a graph in which each pair of vertices is joined
by an edge.
 A Complete Graph contains all possible edges.
Types Of Graphs
Bipartite Graph:
 A Bipartite Graph is a graph in which the vertex set can
be partitioned into two sets, W and X, so that no two vertices
in W share a common edge and no two vertices in X share a common
edge.
 Chromatic number of Bipartite Graph is 2.
Complete Bipartite Graph:
 In a Complete Bipartite Graph, the vertex set is the union of two
disjoint sets, W and X, so that every vertex in W is adjacent to every
vertex in X but there are no edges within W or X.
Example Of Types Of Graphs
(a)Null Graph With
Three Vertices.
a b
c
(b)Complete Graph
With Three Vertices.
a b
cc db
a
(c)2-Regular Graph
With Four Vertices.
a
b c
ed
(d)Bipartite Graph With
Five Vertices.
a
b
c
d
d
e
(e)k(3,3) Complete Bipartite
Graph With Six Vertices.
Representation Of Graph
Two most common ways to represent a Graph:
1. Adjacency Matrix
2. Adjacency List
Adjacency Matrix:
 Adjacency Matrix is a 2D array of size V x V where V is the number of
vertices in a graph.
 Let the 2D array be adj [][], a slot adj [i][j] = 1 indicates that there is
an edge from vertex i to vertex j.
 Adjacency matrix for undirected graph is always symmetric.
 Adjacency Matrix is also used to represent weighted graphs.
 If adj [i][j] = w, then there is an edge from vertex i to vertex j with
weight w.
Representation Of Graph
Adjacency List:
 An array of lists is used.
 Size of the array is equal to the number of vertices.
 Let the array be array []. An entry array [i] represents the
list of vertices adjacent to the ith vertex.
 This representation can also be used to represent a
weighted graph.
 The weights of edges can be represented as lists of pairs.
Representation Of Graph
Example Of Adjacency Matrix Of A Graph:
a 1 2 3
1 0 1 1
2 1 0 1
b c 3 1 1 0
(a) Matrix Representation Of (a)
Example Of Adjacency List Of A Graph:
a
b c
(a)
Head Node Vertex Node
1 2 3 NULL
2 1 3 NULL
3 1 2 NULL
Graph Algorithms
Some Basic Graph Algorithms Are:
1.Depth First Search(DFS)
2.Breadth First Search(BFS)
3.Shortest Path Algorithm
4.Dijskstra’s Algorithm
Graph Coloring
 Graph Coloring is a method to assign colors to the vertices of a graph
so that no two adjacent vertices have the same color.
Some Graph Coloring problems are :
 Vertex coloring : A way of coloring the vertices of a graph so that no
two adjacent vertices share the same color.
 Edge Coloring : It is the method of assigning a color to each edge so
that no two adjacent edges have the same color.
 Face coloring : It assigns a color to each face or region of a planar
graph so that no two faces that share a common boundary have the
same color.
Chromatic Number:
 Chromatic Number is the minimum number of colors required to
color a graph.
THANK YOU
Insert Group
Member Names
Here..

More Related Content

What's hot

Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
Manikanta satyala
 
Graph theory
Graph  theoryGraph  theory
Graph theory
Manash Kumar Mondal
 
Graph theory
Graph theory Graph theory
Graph theory
iranian translate
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
Graph theory
Graph theoryGraph theory
Graph theory
Thirunavukarasu Mani
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
Madhu Bala
 
Hamilton path and euler path
Hamilton path and euler pathHamilton path and euler path
Hamilton path and euler path
Shakib Sarar Arnab
 
Graph theory
Graph theoryGraph theory
Graph theory
Muthulakshmilakshmi2
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
Darwish Ahmad
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphsTech_MX
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
graph theory
graph theorygraph theory
graph theory
Shashank Singh
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
Ashikur Rahman
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
Graph theory introduction - Samy
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - Samy
Mark Arokiasamy
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
Isomorphic graph
Isomorphic graphIsomorphic graph
Isomorphic graph
umair khan
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
Rashika Ahuja
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphismCore Condor
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
Priyank Jain
 

What's hot (20)

Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
 
Graph theory
Graph  theoryGraph  theory
Graph theory
 
Graph theory
Graph theory Graph theory
Graph theory
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Hamilton path and euler path
Hamilton path and euler pathHamilton path and euler path
Hamilton path and euler path
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
graph theory
graph theorygraph theory
graph theory
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Graph theory introduction - Samy
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - Samy
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
 
Isomorphic graph
Isomorphic graphIsomorphic graph
Isomorphic graph
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
 

Similar to Graph theory

Basics of graph
Basics of graphBasics of graph
Basics of graph
Khaled Sany
 
graphs presentation .pptx
graphs presentation .pptxgraphs presentation .pptx
graphs presentation .pptx
ssuser800a48
 
Graphs in datastructures
Graphs in datastructuresGraphs in datastructures
Graphs in datastructures
LikhithaGunturi
 
Graph therory
Graph theroryGraph therory
Graph therory
mohanrathod18
 
Graph Introduction.ppt
Graph Introduction.pptGraph Introduction.ppt
Graph Introduction.ppt
Faruk Hossen
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik
 
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
pubggaming58982
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptx
asimshahzad8611
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
ARVIND SARDAR
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashingVictor Palmar
 
Graphs
GraphsGraphs
Graphs
amudha arul
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
ARVIND SARDAR
 
Graph
GraphGraph
Types of graphs
Types of graphsTypes of graphs
Types of graphs
Thamizhendhi karthikeyan
 
Graph data structure and algorithms
Graph data structure and algorithmsGraph data structure and algorithms
Graph data structure and algorithms
Anandhasilambarasan D
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Rashmi Bhat
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
satvikkushwaha1
 
Ass. (3)graph d.m
Ass. (3)graph d.mAss. (3)graph d.m
Ass. (3)graph d.m
Syed Umair
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________
ssuser1989da
 

Similar to Graph theory (20)

Basics of graph
Basics of graphBasics of graph
Basics of graph
 
graphs presentation .pptx
graphs presentation .pptxgraphs presentation .pptx
graphs presentation .pptx
 
Graphs in datastructures
Graphs in datastructuresGraphs in datastructures
Graphs in datastructures
 
Graph therory
Graph theroryGraph therory
Graph therory
 
Graph Introduction.ppt
Graph Introduction.pptGraph Introduction.ppt
Graph Introduction.ppt
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
 
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptx
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashing
 
Graphs
GraphsGraphs
Graphs
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
Graph
GraphGraph
Graph
 
Types of graphs
Types of graphsTypes of graphs
Types of graphs
 
Graph data structure and algorithms
Graph data structure and algorithmsGraph data structure and algorithms
Graph data structure and algorithms
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
 
Ass. (3)graph d.m
Ass. (3)graph d.mAss. (3)graph d.m
Ass. (3)graph d.m
 
Graph
GraphGraph
Graph
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________
 

Recently uploaded

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

Graph theory

  • 2. Introduction  Graph Theory is the study of points and lines.  In particular, it involves the ways in which sets of points, called vertices, can be connected by lines called edges.  Graph Theory has proven useful in the design of integrated circuits for computers and other electronic devices.  Graph Theory was invented by Leonhard Euler.
  • 3. Graphs And Basic Terminologies  A Graph is an ordered pair G = (V, E) comprising a set V of vertices, nodes or points together with a set E of edges, arcs or lines, which are 2-element subsets of V.  An edge is associated with two vertices, and the association takes the form of the unordered pair of the vertices.  A Graph may be directed or undirected, weighted or unweighted.  A Graph may be with self-loop or self-edge.
  • 4. Example Of Graphs (a)Undirected Graph a b c d a b c 3 2 6 4 (b)Weighted Graph a bc (c)Directed Graph (d)Graph with self-loop a be cd
  • 5. Types Of Graphs Null Graph:  A Graph which contains only isolated nodes(i.e. set of edges of graph is empty) is called as Null Graph. Regular Graph:  A Graph in which each vertex has the same number of neighbours(i.e. every vertex has the same degree) is called as Regular Graph.  A Regular Graph with vertices of degree K is called a K -Regular Graph or regular graph of degree K. Complete Graph:  A Complete Graph is a graph in which each pair of vertices is joined by an edge.  A Complete Graph contains all possible edges.
  • 6. Types Of Graphs Bipartite Graph:  A Bipartite Graph is a graph in which the vertex set can be partitioned into two sets, W and X, so that no two vertices in W share a common edge and no two vertices in X share a common edge.  Chromatic number of Bipartite Graph is 2. Complete Bipartite Graph:  In a Complete Bipartite Graph, the vertex set is the union of two disjoint sets, W and X, so that every vertex in W is adjacent to every vertex in X but there are no edges within W or X.
  • 7. Example Of Types Of Graphs (a)Null Graph With Three Vertices. a b c (b)Complete Graph With Three Vertices. a b cc db a (c)2-Regular Graph With Four Vertices. a b c ed (d)Bipartite Graph With Five Vertices. a b c d d e (e)k(3,3) Complete Bipartite Graph With Six Vertices.
  • 8. Representation Of Graph Two most common ways to represent a Graph: 1. Adjacency Matrix 2. Adjacency List Adjacency Matrix:  Adjacency Matrix is a 2D array of size V x V where V is the number of vertices in a graph.  Let the 2D array be adj [][], a slot adj [i][j] = 1 indicates that there is an edge from vertex i to vertex j.  Adjacency matrix for undirected graph is always symmetric.  Adjacency Matrix is also used to represent weighted graphs.  If adj [i][j] = w, then there is an edge from vertex i to vertex j with weight w.
  • 9. Representation Of Graph Adjacency List:  An array of lists is used.  Size of the array is equal to the number of vertices.  Let the array be array []. An entry array [i] represents the list of vertices adjacent to the ith vertex.  This representation can also be used to represent a weighted graph.  The weights of edges can be represented as lists of pairs.
  • 10. Representation Of Graph Example Of Adjacency Matrix Of A Graph: a 1 2 3 1 0 1 1 2 1 0 1 b c 3 1 1 0 (a) Matrix Representation Of (a) Example Of Adjacency List Of A Graph: a b c (a) Head Node Vertex Node 1 2 3 NULL 2 1 3 NULL 3 1 2 NULL
  • 11. Graph Algorithms Some Basic Graph Algorithms Are: 1.Depth First Search(DFS) 2.Breadth First Search(BFS) 3.Shortest Path Algorithm 4.Dijskstra’s Algorithm
  • 12. Graph Coloring  Graph Coloring is a method to assign colors to the vertices of a graph so that no two adjacent vertices have the same color. Some Graph Coloring problems are :  Vertex coloring : A way of coloring the vertices of a graph so that no two adjacent vertices share the same color.  Edge Coloring : It is the method of assigning a color to each edge so that no two adjacent edges have the same color.  Face coloring : It assigns a color to each face or region of a planar graph so that no two faces that share a common boundary have the same color. Chromatic Number:  Chromatic Number is the minimum number of colors required to color a graph.