SlideShare a Scribd company logo
Graph Theory
Gaurav Yadav
IIIT Sonepat
Contents
● Introduction to Graphs
● Representation of Graphs
● Weighted Graphs
● Non-weighted Graphs
● Directed Graphs
● Undirected Graphs
● Self-loops
● Multigraphs
● Real World Examples
Introduction to Graphs
● A graph G, consists of Vertices(V) and Edges(E).
● G = (V,E).
● V is the set of Vertices.
● E is the set of Edges.
Representation of Graphs
● Let V = {a, b, c}, and E = { { a, b }, { a, c } }.
a b
c
Set describing all the
vertices(or nodes) a, b,
and c.
Set describing an edge
between node a and c.
|V| = 3
|E| = 2
Weighted Graphs
● Weight or cost is a numerical value associated to every edge of a graph. We
encounter with it in real world, when we need to calculate shortest path between two
points, for example – when we see maps to find the shortest driving distance. The
path is chosen which has the minimum cost.
A
E
C
D
B
3
1
1
2
4
2
Shortest path between A & E : A -> D -> C -> E
8
4
Non-weighted Graphs
● In non weighted graphs, when we doesn’t have weights, all edges are considered
equal. The path which has less number of nodes is considered effective.
A
E
C
D
B
Shortest path between A & E : A -> B -> E
Undirected Graphs
● Undirected graphs have edges that do not have a direction. The edges indicate a two-
way relationship, in that each edge can be traversed in both directions.
A
B
D
C
Directed Graphs
● Directed graphs have edges with direction. The edges indicate a one-way relationship,
in that each edge can only be traversed in a single direction.
A
B
D
C
Self-loops
● Graphs created can have one or more self-loops, which are edges connecting a node
to itself.
A
B
D
C
Multigraphs
● Graphs can have multiple edges with the same source and target nodes, and the graph
is then known as a multigraph. A multigraph may or may not contain self-loops.
A
B
D
C
Real World Examples
● Social Graphs – Connections on LinkedIn.
● Path Optimization Algorithms – Google Maps.
● Routing Algorithms in Computer Networks – Routing IP Table in Router.
● Scientific Computations - Edge Chasing in Operating Systems.
Thank You!

More Related Content

What's hot

India's narayan-pandit[1]
India's  narayan-pandit[1]India's  narayan-pandit[1]
India's narayan-pandit[1]
Poonam Singh
 
Graphs in datastructures
Graphs in datastructuresGraphs in datastructures
Graphs in datastructures
LikhithaGunturi
 
Week2
Week2Week2
Graph Application in Traffic Control
Graph Application in Traffic ControlGraph Application in Traffic Control
Graph Application in Traffic Control
Muhammadu Isa
 
Basics of graph
Basics of graphBasics of graph
Basics of graph
Khaled Sany
 
Posulate and theoroem
Posulate and theoroemPosulate and theoroem
Posulate and theoroem
Ardnaxela Zednanreh
 
2.1 Points, Lines, and Planes
2.1 Points, Lines, and Planes2.1 Points, Lines, and Planes
2.1 Points, Lines, and Planes
smiller5
 
1.1.1A Points, Lines, and Planes
1.1.1A Points, Lines, and Planes1.1.1A Points, Lines, and Planes
1.1.1A Points, Lines, and Planes
smiller5
 
4.6 quick graphs using slope intercept form
4.6 quick graphs using slope intercept form4.6 quick graphs using slope intercept form
4.6 quick graphs using slope intercept form
Anibal Aguilar Barahona
 
IRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s TheoremIRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s Theorem
IRJET Journal
 
Geometry sizes and shapes
Geometry   sizes and shapesGeometry   sizes and shapes
Geometry sizes and shapes
Nancy Morales Felipe
 
Types of graphs
Types of graphsTypes of graphs
Types of graphs
Thamizhendhi karthikeyan
 
power point presentation
power point presentationpower point presentation
power point presentation
akhilabethel
 
Points, Lines & Planes Powerpoint
Points, Lines & Planes PowerpointPoints, Lines & Planes Powerpoint
Points, Lines & Planes Powerpoint
knoxbaggett
 
Building Blocks Of Geometry
Building Blocks Of GeometryBuilding Blocks Of Geometry
Building Blocks Of Geometry
acavis
 
1 3 points, lines, planes
1 3 points, lines, planes1 3 points, lines, planes
1 3 points, lines, planes
Huron School District
 
GEOMETRY: POINTS, LINES. PLANES
GEOMETRY: POINTS, LINES. PLANESGEOMETRY: POINTS, LINES. PLANES
GEOMETRY: POINTS, LINES. PLANES
M, Michelle Jeannite
 
Solid mensuration lecture #1
Solid mensuration lecture #1Solid mensuration lecture #1
Solid mensuration lecture #1
Denmar Marasigan
 
Geometry in sizes and shapes
Geometry in sizes and shapesGeometry in sizes and shapes
Geometry in sizes and shapes
beasecosana
 
Vectors
VectorsVectors
Vectors
aruvaishu
 

What's hot (20)

India's narayan-pandit[1]
India's  narayan-pandit[1]India's  narayan-pandit[1]
India's narayan-pandit[1]
 
Graphs in datastructures
Graphs in datastructuresGraphs in datastructures
Graphs in datastructures
 
Week2
Week2Week2
Week2
 
Graph Application in Traffic Control
Graph Application in Traffic ControlGraph Application in Traffic Control
Graph Application in Traffic Control
 
Basics of graph
Basics of graphBasics of graph
Basics of graph
 
Posulate and theoroem
Posulate and theoroemPosulate and theoroem
Posulate and theoroem
 
2.1 Points, Lines, and Planes
2.1 Points, Lines, and Planes2.1 Points, Lines, and Planes
2.1 Points, Lines, and Planes
 
1.1.1A Points, Lines, and Planes
1.1.1A Points, Lines, and Planes1.1.1A Points, Lines, and Planes
1.1.1A Points, Lines, and Planes
 
4.6 quick graphs using slope intercept form
4.6 quick graphs using slope intercept form4.6 quick graphs using slope intercept form
4.6 quick graphs using slope intercept form
 
IRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s TheoremIRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s Theorem
 
Geometry sizes and shapes
Geometry   sizes and shapesGeometry   sizes and shapes
Geometry sizes and shapes
 
Types of graphs
Types of graphsTypes of graphs
Types of graphs
 
power point presentation
power point presentationpower point presentation
power point presentation
 
Points, Lines & Planes Powerpoint
Points, Lines & Planes PowerpointPoints, Lines & Planes Powerpoint
Points, Lines & Planes Powerpoint
 
Building Blocks Of Geometry
Building Blocks Of GeometryBuilding Blocks Of Geometry
Building Blocks Of Geometry
 
1 3 points, lines, planes
1 3 points, lines, planes1 3 points, lines, planes
1 3 points, lines, planes
 
GEOMETRY: POINTS, LINES. PLANES
GEOMETRY: POINTS, LINES. PLANESGEOMETRY: POINTS, LINES. PLANES
GEOMETRY: POINTS, LINES. PLANES
 
Solid mensuration lecture #1
Solid mensuration lecture #1Solid mensuration lecture #1
Solid mensuration lecture #1
 
Geometry in sizes and shapes
Geometry in sizes and shapesGeometry in sizes and shapes
Geometry in sizes and shapes
 
Vectors
VectorsVectors
Vectors
 

Similar to Graph theory

Graph Theory
Graph TheoryGraph Theory
Graph Theory
Rashmi Bhat
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
showslidedump
 
Introduction to Graphs
Introduction to GraphsIntroduction to Graphs
Introduction to Graphs
Fulvio Corno
 
Crossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networksCrossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networks
Ajinkya Ghadge
 
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
sumitbardhan
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
Jyoshna Cec Cse Staf bejjam
 
Vanmathy no sql
Vanmathy no sql Vanmathy no sql
Vanmathy no sql
PriyadharshiniVS
 
VANU no sql ppt.pptx
VANU no sql ppt.pptxVANU no sql ppt.pptx
VANU no sql ppt.pptx
MJeyavarthini
 
8.-Graphs information technologies graph
8.-Graphs information technologies graph8.-Graphs information technologies graph
8.-Graphs information technologies graph
iloveyoucarlo0923
 
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
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
satvikkushwaha1
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxNON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptx
Rajitha Reddy Alugati
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
MeeraMeghpara
 
Graph.pptx
Graph.pptxGraph.pptx
Graph.pptx
Nasir Hussain
 
Graphs in Data Structure
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structure
hafsa komal
 
Hamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's AlgorithmHamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's Algorithm
Mahesh Singh Madai
 
logic.pptx
logic.pptxlogic.pptx
logic.pptx
KENNEDY GITHAIGA
 
DATA STRUCTURES.pptx
DATA STRUCTURES.pptxDATA STRUCTURES.pptx
DATA STRUCTURES.pptx
KENNEDY GITHAIGA
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Mohanlal Sukhadia University (MLSU)
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctures
zukun
 

Similar to Graph theory (20)

Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Introduction to Graphs
Introduction to GraphsIntroduction to Graphs
Introduction to Graphs
 
Crossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networksCrossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networks
 
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
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
 
Vanmathy no sql
Vanmathy no sql Vanmathy no sql
Vanmathy no sql
 
VANU no sql ppt.pptx
VANU no sql ppt.pptxVANU no sql ppt.pptx
VANU no sql ppt.pptx
 
8.-Graphs information technologies graph
8.-Graphs information technologies graph8.-Graphs information technologies graph
8.-Graphs information technologies graph
 
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
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxNON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptx
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
Graph.pptx
Graph.pptxGraph.pptx
Graph.pptx
 
Graphs in Data Structure
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structure
 
Hamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's AlgorithmHamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's Algorithm
 
logic.pptx
logic.pptxlogic.pptx
logic.pptx
 
DATA STRUCTURES.pptx
DATA STRUCTURES.pptxDATA STRUCTURES.pptx
DATA STRUCTURES.pptx
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctures
 

Recently uploaded

How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 

Recently uploaded (20)

How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 

Graph theory

  • 2. Contents ● Introduction to Graphs ● Representation of Graphs ● Weighted Graphs ● Non-weighted Graphs ● Directed Graphs ● Undirected Graphs ● Self-loops ● Multigraphs ● Real World Examples
  • 3. Introduction to Graphs ● A graph G, consists of Vertices(V) and Edges(E). ● G = (V,E). ● V is the set of Vertices. ● E is the set of Edges.
  • 4. Representation of Graphs ● Let V = {a, b, c}, and E = { { a, b }, { a, c } }. a b c Set describing all the vertices(or nodes) a, b, and c. Set describing an edge between node a and c. |V| = 3 |E| = 2
  • 5. Weighted Graphs ● Weight or cost is a numerical value associated to every edge of a graph. We encounter with it in real world, when we need to calculate shortest path between two points, for example – when we see maps to find the shortest driving distance. The path is chosen which has the minimum cost. A E C D B 3 1 1 2 4 2 Shortest path between A & E : A -> D -> C -> E 8 4
  • 6. Non-weighted Graphs ● In non weighted graphs, when we doesn’t have weights, all edges are considered equal. The path which has less number of nodes is considered effective. A E C D B Shortest path between A & E : A -> B -> E
  • 7. Undirected Graphs ● Undirected graphs have edges that do not have a direction. The edges indicate a two- way relationship, in that each edge can be traversed in both directions. A B D C
  • 8. Directed Graphs ● Directed graphs have edges with direction. The edges indicate a one-way relationship, in that each edge can only be traversed in a single direction. A B D C
  • 9. Self-loops ● Graphs created can have one or more self-loops, which are edges connecting a node to itself. A B D C
  • 10. Multigraphs ● Graphs can have multiple edges with the same source and target nodes, and the graph is then known as a multigraph. A multigraph may or may not contain self-loops. A B D C
  • 11. Real World Examples ● Social Graphs – Connections on LinkedIn. ● Path Optimization Algorithms – Google Maps. ● Routing Algorithms in Computer Networks – Routing IP Table in Router. ● Scientific Computations - Edge Chasing in Operating Systems.