SlideShare a Scribd company logo
1 of 13
Graph Theory
Ch. 1. Fundamental Concept
1
Chapter 1
Fundamental Concept
1.1 What Is a Graph?
1.2 Paths, Cycles, and Trails
1.3 Vertex Degree and Counting
1.4 Directed Graphs
Graph Theory
Ch. 1. Fundamental Concept
2
The KÖnigsberg Bridge Problem
❑ Königsber is a city on the Pregel river in Prussia
❑ The city occupied two islands plus areas on both
banks
❑ Problem:
Whether they could leave home, cross every
bridge exactly once, and return home.
X
Y
Z
W
Graph Theory
Ch. 1. Fundamental Concept
3
A Model
❑ A vertex : a region
❑ An edge : a path(bridge) between two regions
e1
e2
e3
e4
e6
e5
e7
Z
Y
X
W
X
Y
Z
W
Graph Theory
Ch. 1. Fundamental Concept
4
General Model
❑ A vertex : an object
❑ An edge : a relation between two objects
common
member
Committee 1 Committee 2
Graph Theory
Ch. 1. Fundamental Concept
5
What Is a Graph?
❑ A graph G is a triple consisting of:
– A vertex set V(G )
– An edge set E(G )
– A relation between an edge and a pair of
vertices
e1
e2
e3
e4
e6
e5
e7
Z
Y
X
W
Graph Theory
Ch. 1. Fundamental Concept
6
Loop, Multiple edges
❑ Loop : An edge whose endpoints are equal
❑ Multiple edges : Edges have the same pair of
endpoints
loop
Multiple
edges
Graph Theory
Ch. 1. Fundamental Concept
7
Simple Graph
❑ Simple graph : A graph has no loops or multiple
edges
loop
Multiple
edges
It is not simple. It is a simple graph.
Graph Theory
Ch. 1. Fundamental Concept
8
Adjacent, neighbors
❑ Two vertices are adjacent and are neighbors
if they are the endpoints of an edge
❑ Example:
– A and B are adjacent
– A and D are not adjacent
A B
C D
Graph Theory
Ch. 1. Fundamental Concept
9
Finite Graph, Null Graph
❑ Finite graph : an graph whose vertex set and
edge set are finite
❑ Null graph : the graph whose vertex set and
edges are empty
Graph Theory
Ch. 1. Fundamental Concept
10
Path and Cycle
❑ Path : a sequence of distinct vertices such
that two consecutive vertices are adjacent
– Example: (a, d, c, b, e) is a path
– (a, b, e, d, c, b, e, d) is not a path; it is a walk
❑ Cycle : a closed Path
– Example: (a, d, c, b, e, a) is a cycle
a b
c
d
e
Graph Theory
Ch. 1. Fundamental Concept
11
Adjacency, Incidence, and Degree
❑ Assume ei is an edge whose endpoints are
(vj,vk)
❑ The vertices vj and vk are said to be adjacent
❑ The edge ei is said to be incident upon vj
❑ Degree of a vertex vk is the number of edges
incident upon vk . It is denoted as d(vk)
ei
vj
vk
Graph Theory
Ch. 1. Fundamental Concept
12
Adjacency matrix
❑ Let G = (V, E), |V| = n and |E|=m
❑ The adjacency matrix of G written A(G), is
the n-by-n matrix in which entry ai,j is the
number of edges in G with endpoints {vi, vj}.
a
b
c
d
e
w
x
y z
w x y z
0 1 1 0
1 0 2 0
1 2 0 1
0 0 1 0
w
x
y
z
Graph Theory
Ch. 1. Fundamental Concept
13
Complete Graph
❑ Complete Graph : a simple graph whose
vertices are pairwise adjacent
Complete Graph

More Related Content

Similar to Graph-Basics.pptx

Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theoryArvindBorge
 
graph.pptx
graph.pptxgraph.pptx
graph.pptxhijigaf
 
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
 
358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13sumitbardhan
 
Algorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptxAlgorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptxzerihunnana
 
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFE
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFEAPPLICATIONS OF GRAPH THEORY IN HUMAN LIFE
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFEMary Calkins
 
Introduction to-graph-theory-1204617648178088-2
Introduction to-graph-theory-1204617648178088-2Introduction to-graph-theory-1204617648178088-2
Introduction to-graph-theory-1204617648178088-2Houw Liong The
 
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 IJCER (www.ijceronline.com) International Journal of computational Engineeri... IJCER (www.ijceronline.com) International Journal of computational Engineeri...
IJCER (www.ijceronline.com) International Journal of computational Engineeri...ijceronline
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theoryChuckie Balbuena
 
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 ColouringSaurabh Kaushik
 
Graphs (Models & Terminology)
Graphs (Models & Terminology)Graphs (Models & Terminology)
Graphs (Models & Terminology)zunaira saleem
 

Similar to Graph-Basics.pptx (20)

Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Graph ds
Graph dsGraph ds
Graph ds
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 
graph.pptx
graph.pptxgraph.pptx
graph.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 therory
Graph theroryGraph therory
Graph therory
 
358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13
 
Graph 01
Graph 01Graph 01
Graph 01
 
Algorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptxAlgorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptx
 
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFE
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFEAPPLICATIONS OF GRAPH THEORY IN HUMAN LIFE
APPLICATIONS OF GRAPH THEORY IN HUMAN LIFE
 
Introduction to-graph-theory-1204617648178088-2
Introduction to-graph-theory-1204617648178088-2Introduction to-graph-theory-1204617648178088-2
Introduction to-graph-theory-1204617648178088-2
 
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 IJCER (www.ijceronline.com) International Journal of computational Engineeri... IJCER (www.ijceronline.com) International Journal of computational Engineeri...
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
 
graph theory
graph theorygraph theory
graph theory
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
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 (Models & Terminology)
Graphs (Models & Terminology)Graphs (Models & Terminology)
Graphs (Models & Terminology)
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
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
 
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
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
_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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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 ...
 
_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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Graph-Basics.pptx

  • 1. Graph Theory Ch. 1. Fundamental Concept 1 Chapter 1 Fundamental Concept 1.1 What Is a Graph? 1.2 Paths, Cycles, and Trails 1.3 Vertex Degree and Counting 1.4 Directed Graphs
  • 2. Graph Theory Ch. 1. Fundamental Concept 2 The KÖnigsberg Bridge Problem ❑ Königsber is a city on the Pregel river in Prussia ❑ The city occupied two islands plus areas on both banks ❑ Problem: Whether they could leave home, cross every bridge exactly once, and return home. X Y Z W
  • 3. Graph Theory Ch. 1. Fundamental Concept 3 A Model ❑ A vertex : a region ❑ An edge : a path(bridge) between two regions e1 e2 e3 e4 e6 e5 e7 Z Y X W X Y Z W
  • 4. Graph Theory Ch. 1. Fundamental Concept 4 General Model ❑ A vertex : an object ❑ An edge : a relation between two objects common member Committee 1 Committee 2
  • 5. Graph Theory Ch. 1. Fundamental Concept 5 What Is a Graph? ❑ A graph G is a triple consisting of: – A vertex set V(G ) – An edge set E(G ) – A relation between an edge and a pair of vertices e1 e2 e3 e4 e6 e5 e7 Z Y X W
  • 6. Graph Theory Ch. 1. Fundamental Concept 6 Loop, Multiple edges ❑ Loop : An edge whose endpoints are equal ❑ Multiple edges : Edges have the same pair of endpoints loop Multiple edges
  • 7. Graph Theory Ch. 1. Fundamental Concept 7 Simple Graph ❑ Simple graph : A graph has no loops or multiple edges loop Multiple edges It is not simple. It is a simple graph.
  • 8. Graph Theory Ch. 1. Fundamental Concept 8 Adjacent, neighbors ❑ Two vertices are adjacent and are neighbors if they are the endpoints of an edge ❑ Example: – A and B are adjacent – A and D are not adjacent A B C D
  • 9. Graph Theory Ch. 1. Fundamental Concept 9 Finite Graph, Null Graph ❑ Finite graph : an graph whose vertex set and edge set are finite ❑ Null graph : the graph whose vertex set and edges are empty
  • 10. Graph Theory Ch. 1. Fundamental Concept 10 Path and Cycle ❑ Path : a sequence of distinct vertices such that two consecutive vertices are adjacent – Example: (a, d, c, b, e) is a path – (a, b, e, d, c, b, e, d) is not a path; it is a walk ❑ Cycle : a closed Path – Example: (a, d, c, b, e, a) is a cycle a b c d e
  • 11. Graph Theory Ch. 1. Fundamental Concept 11 Adjacency, Incidence, and Degree ❑ Assume ei is an edge whose endpoints are (vj,vk) ❑ The vertices vj and vk are said to be adjacent ❑ The edge ei is said to be incident upon vj ❑ Degree of a vertex vk is the number of edges incident upon vk . It is denoted as d(vk) ei vj vk
  • 12. Graph Theory Ch. 1. Fundamental Concept 12 Adjacency matrix ❑ Let G = (V, E), |V| = n and |E|=m ❑ The adjacency matrix of G written A(G), is the n-by-n matrix in which entry ai,j is the number of edges in G with endpoints {vi, vj}. a b c d e w x y z w x y z 0 1 1 0 1 0 2 0 1 2 0 1 0 0 1 0 w x y z
  • 13. Graph Theory Ch. 1. Fundamental Concept 13 Complete Graph ❑ Complete Graph : a simple graph whose vertices are pairwise adjacent Complete Graph