SlideShare a Scribd company logo
1 of 25
GRAPH THEORY
Mr. S.L. Khairnar
Graph Theory
A graph is an ordered pair G = (V, E), where V is the set of
vertices and E is the set of edges which connects the
vertices of V
A graph is represented with dots or circles (vertices) joined by lines (edges)
The magnitude of graph G is characterized by number of vertices |V| (called the order of G)
and number of edges |E| (size of G)
Directed Graph
An edge e  E of a directed graph is represented as an ordered pair (u,v), where u, v 
V. Here u is the initial vertex and v is the terminal vertex. Also assume here that u ≠ v
2
4
3
1
V = { 1, 2, 3, 4}, | V | = 4
E = {(1,2), (2,3), (2,4), (4,1), (4,2)}, | E |=5
Undirected Graph
2
4
3
1
V = { 1, 2, 3, 4}, | V | = 4
E = {(1,2), (2,3), (2,4), (4,1)}, | E |=4
An edge e  E of an undirected graph is represented as an
unordered pair (u,v)=(v,u), where u, v  V. Also assume that u ≠ v
Degree of a Vertex
Degree of a vertex in an undirected graph is the number of edges incident on
it. In a directed graph, the out degree of a vertex is the number of edges
leaving it and the in degree is the number of edges entering it
2
4
31
2
4
3
1
The degree of vertex 2 is 3 The in degree of vertex 2 is 2
and the in degree of vertex 4
is 1
Note. A vertex of degree zero is called isolated.
Note. A vertex is pendant if and only if it has degree one
Theorem
The Handshaking Theorem
Let G = (V; E) be an undirected graph with m
edges. Then 2m = 𝑣 ∈𝑉 deg 𝑣
Theorem
An undirected graph has an even
number of vertices of odd
degree.
Example
How many edges are present in a
graph with degrees as
1,2,3,4,5,6,7
In Degree and Out
Degree of a Vertex
14/08/2020
In a graph with directed edges
the in-degree of a vertex v,
denoted by deg−
𝑣, is the number
of edges with v as their terminal
vertex
In a graph with directed edges
the Out-degree of a vertex v,
denoted by deg+
𝑣, is the number
of edges with v as their initial
vertex
Theorem
The Handshaking Theorem
Let G = (V; E) be an undirected graph with m
edges. Then
m = 𝑣 ∈𝑉 deg+
𝑣= 𝑣 ∈𝑉 deg−
𝑣

More Related Content

What's hot

Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
Graph theory introduction - Samy
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - SamyMark Arokiasamy
 
CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring pptAbilaasha Ganesan
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphsTech_MX
 
Graph theory
Graph theoryGraph theory
Graph theoryKumar
 
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
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSManojit Chakraborty
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptishan743441
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersappasami
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 

What's hot (20)

graph theory
graph theory graph theory
graph theory
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
graph theory
graph theorygraph theory
graph theory
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph theory introduction - Samy
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - Samy
 
CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring ppt
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph theory
Graph theory Graph 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
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
 
Lecture-9.pptx
Lecture-9.pptxLecture-9.pptx
Lecture-9.pptx
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
 
Graph
GraphGraph
Graph
 
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
 

Similar to Graph theory introduction

Similar to Graph theory introduction (20)

Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
 
Graphs
GraphsGraphs
Graphs
 
FCS (graphs).pptx
FCS (graphs).pptxFCS (graphs).pptx
FCS (graphs).pptx
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
Graph theory
Graph theoryGraph theory
Graph theory
 
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
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
 
Ass. (3)graph d.m
Ass. (3)graph d.mAss. (3)graph d.m
Ass. (3)graph d.m
 
Graph terminologies & special type graphs
Graph terminologies & special type graphsGraph terminologies & special type graphs
Graph terminologies & special type graphs
 
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
 
Graph.ppt
Graph.pptGraph.ppt
Graph.ppt
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
 
Graphs
GraphsGraphs
Graphs
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
 
graphtheory
graphtheorygraphtheory
graphtheory
 

More from Sagar Khairnar

More from Sagar Khairnar (11)

6 discount
6 discount6 discount
6 discount
 
5 partnership
5 partnership5 partnership
5 partnership
 
4 profit and loss
4 profit and loss4 profit and loss
4 profit and loss
 
3 percentages
3 percentages3 percentages
3 percentages
 
2 propotion
2 propotion2 propotion
2 propotion
 
1 ratio
1 ratio1 ratio
1 ratio
 
Special graph
Special graphSpecial graph
Special graph
 
Isomorphism
IsomorphismIsomorphism
Isomorphism
 
Decision making under uncertainty
Decision making under uncertaintyDecision making under uncertainty
Decision making under uncertainty
 
Introduction to Decision theory
Introduction to Decision theoryIntroduction to Decision theory
Introduction to Decision theory
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Graph theory introduction

  • 3.
  • 4. A graph is an ordered pair G = (V, E), where V is the set of vertices and E is the set of edges which connects the vertices of V A graph is represented with dots or circles (vertices) joined by lines (edges) The magnitude of graph G is characterized by number of vertices |V| (called the order of G) and number of edges |E| (size of G)
  • 5.
  • 7.
  • 8. An edge e  E of a directed graph is represented as an ordered pair (u,v), where u, v  V. Here u is the initial vertex and v is the terminal vertex. Also assume here that u ≠ v 2 4 3 1 V = { 1, 2, 3, 4}, | V | = 4 E = {(1,2), (2,3), (2,4), (4,1), (4,2)}, | E |=5
  • 10.
  • 11. 2 4 3 1 V = { 1, 2, 3, 4}, | V | = 4 E = {(1,2), (2,3), (2,4), (4,1)}, | E |=4 An edge e  E of an undirected graph is represented as an unordered pair (u,v)=(v,u), where u, v  V. Also assume that u ≠ v
  • 12. Degree of a Vertex
  • 13.
  • 14. Degree of a vertex in an undirected graph is the number of edges incident on it. In a directed graph, the out degree of a vertex is the number of edges leaving it and the in degree is the number of edges entering it 2 4 31 2 4 3 1 The degree of vertex 2 is 3 The in degree of vertex 2 is 2 and the in degree of vertex 4 is 1
  • 15. Note. A vertex of degree zero is called isolated. Note. A vertex is pendant if and only if it has degree one
  • 17. Let G = (V; E) be an undirected graph with m edges. Then 2m = 𝑣 ∈𝑉 deg 𝑣
  • 18. Theorem An undirected graph has an even number of vertices of odd degree.
  • 19. Example How many edges are present in a graph with degrees as 1,2,3,4,5,6,7
  • 20.
  • 21. In Degree and Out Degree of a Vertex 14/08/2020
  • 22. In a graph with directed edges the in-degree of a vertex v, denoted by deg− 𝑣, is the number of edges with v as their terminal vertex
  • 23. In a graph with directed edges the Out-degree of a vertex v, denoted by deg+ 𝑣, is the number of edges with v as their initial vertex
  • 25. Let G = (V; E) be an undirected graph with m edges. Then m = 𝑣 ∈𝑉 deg+ 𝑣= 𝑣 ∈𝑉 deg− 𝑣