Graph theory presentation

Aliul Kadir Akib
Welcome to Discrete Mathematics
PRESENTATION
Topics: Graph Theory
Submited by:
Md: Aliul Kadir akib
Daffodil International University
Mail:aliulkadir@gmail.com
Introduction
 What is a graph G?
 It is a pair G = (V, E),
where
 V = V(G) = set of vertices
 E = E(G) = set of edges
 Example:
 V = {s, u, v, w, x, y, z}
 E = {(x,s), (x,v), (x,v), (x,u),
(v,w), (s,v), (s,u), (s,w), (s,y),
(w,y), (u,y), (u,z),(y,z)}
Special edges
 Parallel edges
 Two or more edges
joining a pair of vertices
 in the example, a and b
are joined by two parallel
edges
 Loops
 An edge that starts and
ends at the same vertex
 In the example, vertex d
has a loop
Special graphs
 Simple graph
 A graph without loops
or parallel edges.
 Weighted graph
 A graph where each
edge is assigned a
numerical label or
“weight”.
Directed graphs (digraphs)
G is a directed graph or
digraph if each edge
has been associated
with an ordered pair
of vertices, i.e. each
edge has a direction
Terminology – Undirected graphs
 u and v are adjacent if {u, v} is an edge, e is called incident with u and
v. u and v are called endpoints of {u, v}
 Degree of Vertex (deg (v)): the number of edges incident on a vertex.
A loop contributes twice to the degree (why?).
 Pendant Vertex: deg (v) =1
 Isolated Vertex: deg (v) = 0
 Representation Example: For V = {u, v, w} , E = { {u, w}, {u, w}, (u,
v) }, deg (u) = 2, deg (v) = 1, deg (w) = 1, deg (k) = 0, w and v are
pendant , k is isolated
Terminology – Directed graphs
 For the edge (u, v), u is adjacent to v OR v is adjacent from u, u –
Initial vertex, v – Terminal vertex
 In-degree (deg-
(u)): number of edges for which u is terminal vertex
 Out-degree (deg+
(u)): number of edges for which u is initial vertex
Note: A loop contributes 1 to both in-degree and out-degree (why?)
Representation Example: For V = {u, v, w} , E = { (u, w), ( v, w), (u, v) },
deg-
(u) = 0, deg+
(u) = 2, deg-
(v) = 1,
deg+
(v) = 1, and deg-
(w) = 2, deg+
(u) = 0
Theorems: Undirected Graphs
Theorem 1
The Handshaking theorem:
(why?) Every edge connects 2 vertices
∑∈
=
Vv
ve2
Theorems: Undirected Graphs
Theorem 2:
An undirected graph has even number of vertices
with odd degree
even
Voof
=⇒
⇒
⇒
∈⇒
+==
∑
∑∑∑
∈
∈∈∈
2
21
Vv
1,
VvVuVv
deg(v)termsecond
evenalsoistermsecondHence
2e.issumsinceevenisinequalitylastthe
ofsidehandrighton thetermslast twotheofsumThe
even.isinequalitylasttheofsidehandrightin thefirst termThe
Vfor vevenis(v)deg
deg(v)deg(u)deg(v)2e
verticesdegreeoddtorefersV2andverticesdegreeevenofsettheis1Pr
Definitions – Graph Type
Simple graphs – special cases
 Wheels: Wn, obtained by adding additional
vertex to Cn and connecting all vertices to
this new vertex by new edges.
Representation Example: W3, W4
Complete graph K n
 Let n > 3
 The complete graph Kn is
the graph with n vertices
and every pair of vertices
is joined by an edge.
 The figure represents K5
Bipartite graphs
 A bipartite graph G is a
graph such that
 V(G) = V(G1) ∪ V(G2)
 |V(G1)| = m, |V(G2)| = n
 V(G1) ∩V(G2) = ∅
 No edges exist between
any two vertices in the
same subset V(Gk), k =
1,2
Complete bipartite graph Km,n
 A bipartite graph is the
complete bipartite graph Km,n if
every vertex in V(G1) is joined
to a vertex in V(G2) and
conversely,
 |V(G1)| = m
 |V(G2)| = n
Connected graphs
 A graph is connected if
every pair of vertices
can be connected by a
path
 Each connected
subgraph of a non-
connected graph G is
called a component of G
Paths and cycles
 A path of length n is a
sequence of n + 1
vertices and n
consecutive edges
 A cycle is a path that
begins and ends at
the same vertex
Euler cycles
 An Euler cycle in a graph G is a
simple cycle that passes through
every edge of G only once.
 The Konigsberg bridge problem:
 Starting and ending at the same point, is it
possible to cross all seven bridges just
once and return to the starting point?
 This problem can be represented
by a graph
 Edges represent bridges and
each vertex represents a region.
Degree of a vertex
 The degree of a vertex
v, denoted by δ(v), is
the number of edges
incident on v
 Example:
 δ(a) = 4, δ(b) = 3,
 δ(c) = 4, δ(d) = 6,
 δ(e) = 4, δ(f) = 4,
 δ(g) = 3.
Sum of the degrees of a graph
Theorem : If G is a graph with m edges and n
vertices v1, v2,…, vn, then
n
Σ δ(vi) = 2m
i = 1
In particular, the sum of the degrees of all the
vertices of a graph is even.
Shortest Path Problems
• Directed weighted graph.
• Path length is sum of weights of edges on path.
• The vertex at which the path begins is the source
vertex.
• The vertex at which the path ends is the
destination vertex.
0
3 9
5 11
3
6
5
7
6
s
t x
y z
2
2 1
4
3
Example
1
2
3
4
5
6
7
2
6
16
7
8
10
3
14
4
4
5 3
1
• A shorter path will cost only 11
Representations of graphs
 Adjacency matrix
Rows and columns are
labeled with ordered
vertices
write a 1 if there is an edge
between the row vertex
and the column vertex
and 0 if no edge exists
between them
v w x y
v 0 1 0 1
w 1 0 1 1
x 0 1 0 1
y 1 1 1 0
Euler’s formula
 If G is planar graph,
 v = number of vertices
 e = number of edges
 f = number of faces,
including the exterior face
 Then: v – e + f = 2
Graph theory presentation
1 de 24

Recomendados

Graph Theory por
Graph TheoryGraph Theory
Graph TheoryEhsan Hamzei
4.2K vistas14 diapositivas
Introduction to Graph Theory por
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph TheoryPremsankar Chakkingal
35.1K vistas35 diapositivas
Ppt of graph theory por
Ppt of graph theoryPpt of graph theory
Ppt of graph theoryArvindBorge
616 vistas81 diapositivas
graph theory por
graph theory graph theory
graph theory ganith2k13
14.5K vistas93 diapositivas
Graph theory por
Graph theoryGraph theory
Graph theoryAparnaKumari31
2.1K vistas13 diapositivas
Graph Theory Introduction por
Graph Theory IntroductionGraph Theory Introduction
Graph Theory IntroductionMANISH T I
1.9K vistas18 diapositivas

Más contenido relacionado

La actualidad más candente

Graph theory por
Graph theoryGraph theory
Graph theoryThirunavukarasu Mani
9.9K vistas139 diapositivas
Graph theory and its applications por
Graph theory and its applicationsGraph theory and its applications
Graph theory and its applicationsManikanta satyala
34.2K vistas57 diapositivas
Graph theory por
Graph  theoryGraph  theory
Graph theoryManash Kumar Mondal
4.1K vistas42 diapositivas
Graph theory introduction - Samy por
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - SamyMark Arokiasamy
1.9K vistas90 diapositivas
Introduction to Graph Theory por
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph TheoryYosuke Mizutani
4.2K vistas71 diapositivas
Graph theory concepts complex networks presents-rouhollah nabati por
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabatinabati
2.8K vistas107 diapositivas

La actualidad más candente(20)

Graph theory and its applications por Manikanta satyala
Graph theory and its applicationsGraph theory and its applications
Graph theory and its applications
Manikanta satyala34.2K vistas
Graph theory introduction - Samy por Mark Arokiasamy
Graph theory  introduction - SamyGraph theory  introduction - Samy
Graph theory introduction - Samy
Mark Arokiasamy1.9K vistas
Introduction to Graph Theory por Yosuke Mizutani
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani4.2K vistas
Graph theory concepts complex networks presents-rouhollah nabati por nabati
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabati
nabati2.8K vistas
Chapter 5 Graphs (1).ppt por ishan743441
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
ishan743441242 vistas
Dijkstra's algorithm presentation por Subid Biswas
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
Subid Biswas3.5K vistas
Graphs in data structure por hamza javed
Graphs in data structureGraphs in data structure
Graphs in data structure
hamza javed1.8K vistas
Slides Chapter10.1 10.2 por showslidedump
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
showslidedump3.1K vistas
Graphs in Data Structure por hafsa komal
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structure
hafsa komal2.2K vistas
Graph terminologies & special type graphs por Nabeel Ahsen
Graph terminologies & special type graphsGraph terminologies & special type graphs
Graph terminologies & special type graphs
Nabeel Ahsen6.5K vistas
Introduction to graph theory (All chapter) por sobia1122
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)
sobia11221.1K vistas
Graph isomorphism por Core Condor
Graph isomorphismGraph isomorphism
Graph isomorphism
Core Condor5.3K vistas
Data structure - Graph por Madhu Bala
Data structure - GraphData structure - Graph
Data structure - Graph
Madhu Bala6.3K vistas

Similar a Graph theory presentation

graph.ppt por
graph.pptgraph.ppt
graph.pptRakeshPandey951330
102 vistas107 diapositivas
graph ASS (1).ppt por
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).pptARVIND SARDAR
33 vistas158 diapositivas
LEC 1.pptx por
LEC 1.pptxLEC 1.pptx
LEC 1.pptxssuserc1e786
23 vistas23 diapositivas
Graph ASS DBATU.pptx por
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptxARVIND SARDAR
6 vistas151 diapositivas
graph.ppt por
graph.pptgraph.ppt
graph.pptSumitSamanta16
55 vistas98 diapositivas
Graph theory introduction por
Graph theory introductionGraph theory introduction
Graph theory introductionSagar Khairnar
248 vistas25 diapositivas

Similar a Graph theory presentation(20)

Tn 110 lecture 8 por ITNet
Tn 110 lecture 8Tn 110 lecture 8
Tn 110 lecture 8
ITNet45 vistas
Lecture 1--Graph Algorithms -- Basics.pptx por ChandanGiri21
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
ChandanGiri2136 vistas
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring por Saurabh Kaushik
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik10.7K vistas
Cs6702 graph theory and applications 2 marks questions and answers por appasami
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
appasami13.5K vistas
Elements of Graph Theory for IS.pptx por miki304759
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
miki30475956 vistas

Último

Update 42 models(Diode/General ) in SPICE PARK(DEC2023) por
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Tsuyoshi Horigome
38 vistas16 diapositivas
Ansari: Practical experiences with an LLM-based Islamic Assistant por
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic AssistantM Waleed Kadous
5 vistas29 diapositivas
Pull down shoulder press final report docx (1).pdf por
Pull down shoulder press final report docx (1).pdfPull down shoulder press final report docx (1).pdf
Pull down shoulder press final report docx (1).pdfComsat Universal Islamabad Wah Campus
20 vistas25 diapositivas
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ... por
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...AltinKaradagli
15 vistas16 diapositivas
DESIGN OF SPRINGS-UNIT4.pptx por
DESIGN OF SPRINGS-UNIT4.pptxDESIGN OF SPRINGS-UNIT4.pptx
DESIGN OF SPRINGS-UNIT4.pptxgopinathcreddy
19 vistas47 diapositivas
Effect of deep chemical mixing columns on properties of surrounding soft clay... por
Effect of deep chemical mixing columns on properties of surrounding soft clay...Effect of deep chemical mixing columns on properties of surrounding soft clay...
Effect of deep chemical mixing columns on properties of surrounding soft clay...AltinKaradagli
10 vistas10 diapositivas

Último(20)

Update 42 models(Diode/General ) in SPICE PARK(DEC2023) por Tsuyoshi Horigome
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Tsuyoshi Horigome38 vistas
Ansari: Practical experiences with an LLM-based Islamic Assistant por M Waleed Kadous
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic Assistant
M Waleed Kadous5 vistas
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ... por AltinKaradagli
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
Investigation of Physicochemical Changes of Soft Clay around Deep Geopolymer ...
AltinKaradagli15 vistas
Effect of deep chemical mixing columns on properties of surrounding soft clay... por AltinKaradagli
Effect of deep chemical mixing columns on properties of surrounding soft clay...Effect of deep chemical mixing columns on properties of surrounding soft clay...
Effect of deep chemical mixing columns on properties of surrounding soft clay...
AltinKaradagli10 vistas
fakenews_DBDA_Mar23.pptx por deepmitra8
fakenews_DBDA_Mar23.pptxfakenews_DBDA_Mar23.pptx
fakenews_DBDA_Mar23.pptx
deepmitra816 vistas
Generative AI Models & Their Applications por SN
Generative AI Models & Their ApplicationsGenerative AI Models & Their Applications
Generative AI Models & Their Applications
SN10 vistas
DevOps-ITverse-2023-IIT-DU.pptx por Anowar Hossain
DevOps-ITverse-2023-IIT-DU.pptxDevOps-ITverse-2023-IIT-DU.pptx
DevOps-ITverse-2023-IIT-DU.pptx
Anowar Hossain12 vistas
MongoDB.pdf por ArthyR3
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR345 vistas
MSA Website Slideshow (16).pdf por msaucla
MSA Website Slideshow (16).pdfMSA Website Slideshow (16).pdf
MSA Website Slideshow (16).pdf
msaucla92 vistas
_MAKRIADI-FOTEINI_diploma thesis.pptx por fotinimakriadi
_MAKRIADI-FOTEINI_diploma thesis.pptx_MAKRIADI-FOTEINI_diploma thesis.pptx
_MAKRIADI-FOTEINI_diploma thesis.pptx
fotinimakriadi8 vistas
REACTJS.pdf por ArthyR3
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
ArthyR334 vistas
Design_Discover_Develop_Campaign.pptx por ShivanshSeth6
Design_Discover_Develop_Campaign.pptxDesign_Discover_Develop_Campaign.pptx
Design_Discover_Develop_Campaign.pptx
ShivanshSeth637 vistas
Design of machine elements-UNIT 3.pptx por gopinathcreddy
Design of machine elements-UNIT 3.pptxDesign of machine elements-UNIT 3.pptx
Design of machine elements-UNIT 3.pptx
gopinathcreddy33 vistas

Graph theory presentation

  • 1. Welcome to Discrete Mathematics PRESENTATION Topics: Graph Theory Submited by: Md: Aliul Kadir akib Daffodil International University Mail:aliulkadir@gmail.com
  • 2. Introduction  What is a graph G?  It is a pair G = (V, E), where  V = V(G) = set of vertices  E = E(G) = set of edges  Example:  V = {s, u, v, w, x, y, z}  E = {(x,s), (x,v), (x,v), (x,u), (v,w), (s,v), (s,u), (s,w), (s,y), (w,y), (u,y), (u,z),(y,z)}
  • 3. Special edges  Parallel edges  Two or more edges joining a pair of vertices  in the example, a and b are joined by two parallel edges  Loops  An edge that starts and ends at the same vertex  In the example, vertex d has a loop
  • 4. Special graphs  Simple graph  A graph without loops or parallel edges.  Weighted graph  A graph where each edge is assigned a numerical label or “weight”.
  • 5. Directed graphs (digraphs) G is a directed graph or digraph if each edge has been associated with an ordered pair of vertices, i.e. each edge has a direction
  • 6. Terminology – Undirected graphs  u and v are adjacent if {u, v} is an edge, e is called incident with u and v. u and v are called endpoints of {u, v}  Degree of Vertex (deg (v)): the number of edges incident on a vertex. A loop contributes twice to the degree (why?).  Pendant Vertex: deg (v) =1  Isolated Vertex: deg (v) = 0  Representation Example: For V = {u, v, w} , E = { {u, w}, {u, w}, (u, v) }, deg (u) = 2, deg (v) = 1, deg (w) = 1, deg (k) = 0, w and v are pendant , k is isolated
  • 7. Terminology – Directed graphs  For the edge (u, v), u is adjacent to v OR v is adjacent from u, u – Initial vertex, v – Terminal vertex  In-degree (deg- (u)): number of edges for which u is terminal vertex  Out-degree (deg+ (u)): number of edges for which u is initial vertex Note: A loop contributes 1 to both in-degree and out-degree (why?) Representation Example: For V = {u, v, w} , E = { (u, w), ( v, w), (u, v) }, deg- (u) = 0, deg+ (u) = 2, deg- (v) = 1, deg+ (v) = 1, and deg- (w) = 2, deg+ (u) = 0
  • 8. Theorems: Undirected Graphs Theorem 1 The Handshaking theorem: (why?) Every edge connects 2 vertices ∑∈ = Vv ve2
  • 9. Theorems: Undirected Graphs Theorem 2: An undirected graph has even number of vertices with odd degree even Voof =⇒ ⇒ ⇒ ∈⇒ +== ∑ ∑∑∑ ∈ ∈∈∈ 2 21 Vv 1, VvVuVv deg(v)termsecond evenalsoistermsecondHence 2e.issumsinceevenisinequalitylastthe ofsidehandrighton thetermslast twotheofsumThe even.isinequalitylasttheofsidehandrightin thefirst termThe Vfor vevenis(v)deg deg(v)deg(u)deg(v)2e verticesdegreeoddtorefersV2andverticesdegreeevenofsettheis1Pr
  • 11. Simple graphs – special cases  Wheels: Wn, obtained by adding additional vertex to Cn and connecting all vertices to this new vertex by new edges. Representation Example: W3, W4
  • 12. Complete graph K n  Let n > 3  The complete graph Kn is the graph with n vertices and every pair of vertices is joined by an edge.  The figure represents K5
  • 13. Bipartite graphs  A bipartite graph G is a graph such that  V(G) = V(G1) ∪ V(G2)  |V(G1)| = m, |V(G2)| = n  V(G1) ∩V(G2) = ∅  No edges exist between any two vertices in the same subset V(Gk), k = 1,2
  • 14. Complete bipartite graph Km,n  A bipartite graph is the complete bipartite graph Km,n if every vertex in V(G1) is joined to a vertex in V(G2) and conversely,  |V(G1)| = m  |V(G2)| = n
  • 15. Connected graphs  A graph is connected if every pair of vertices can be connected by a path  Each connected subgraph of a non- connected graph G is called a component of G
  • 16. Paths and cycles  A path of length n is a sequence of n + 1 vertices and n consecutive edges  A cycle is a path that begins and ends at the same vertex
  • 17. Euler cycles  An Euler cycle in a graph G is a simple cycle that passes through every edge of G only once.  The Konigsberg bridge problem:  Starting and ending at the same point, is it possible to cross all seven bridges just once and return to the starting point?  This problem can be represented by a graph  Edges represent bridges and each vertex represents a region.
  • 18. Degree of a vertex  The degree of a vertex v, denoted by δ(v), is the number of edges incident on v  Example:  δ(a) = 4, δ(b) = 3,  δ(c) = 4, δ(d) = 6,  δ(e) = 4, δ(f) = 4,  δ(g) = 3.
  • 19. Sum of the degrees of a graph Theorem : If G is a graph with m edges and n vertices v1, v2,…, vn, then n Σ δ(vi) = 2m i = 1 In particular, the sum of the degrees of all the vertices of a graph is even.
  • 20. Shortest Path Problems • Directed weighted graph. • Path length is sum of weights of edges on path. • The vertex at which the path begins is the source vertex. • The vertex at which the path ends is the destination vertex. 0 3 9 5 11 3 6 5 7 6 s t x y z 2 2 1 4 3
  • 22. Representations of graphs  Adjacency matrix Rows and columns are labeled with ordered vertices write a 1 if there is an edge between the row vertex and the column vertex and 0 if no edge exists between them v w x y v 0 1 0 1 w 1 0 1 1 x 0 1 0 1 y 1 1 1 0
  • 23. Euler’s formula  If G is planar graph,  v = number of vertices  e = number of edges  f = number of faces, including the exterior face  Then: v – e + f = 2