SlideShare a Scribd company logo
1 of 14
GRAPH
What is graph
Graphs consist of
 points called vertices
 lines called edges
1. Edges connect two vertices.
2. Edges only intersect at vertices.
3. Edges joining a vertex to itself are
called loops.
Example
FlexoFlexo BenderBender LeelaLeela
FryFry AmyAmy
This is also a graph. The vertices just happen to have
people’s names.
Such a graph could represent friendships (or any kind of
relationship).
FarnsworthFarnsworth
ZoidbergZoidberg
Theory of Large Graphs
Large graphs
 Billion vertices
 Exact edges present not critical
Theoretical basis for study of large graphs
 Maybe theory of graph generation
 Invariant to small changes in definition
 Must be able to prove basic theorems
Type of graph
Weighted Graph
Undirected Graph
Directed Graph
Connected Graphs
Complete Graphs
TRAVERSING A GRAPH
1.DFS:
DFS means death first search, we use
here STACK
2.BFS:
BFS means breath first search, we use
here QUEUE
DFS
Print :C STACK:E,F,D
Print:D STACK:E,F
Print:F STACK:E,I
Print:I STACK:E,H
Print:H STACK:E,G
Print:E STACK:B
Print:B STACK;
C,D,F,I,H,G,E
A
B C D
E
F G
I H
ADJACENCY LIST
A B,C,D H F,G
B C I H
C E,F,D
D F
E I,B
F I
G F,D
A
B C D
E
F G
I H
BFS

FRONT=1 QUEUE=A
REAR=1 ORIG= NULL
FRONT=2 QUEUE=A,B,C,D
REAR=4 ORIG=NULL, A,A,A
FRONT=3 QUEUE=A,B,C,D
REAR=4 ORIG=NULL,A,A,A,C
…………
FRONT=5 QUEUE=A,B,C,D,E,F,I
REAR=7 QUEUE=NULL,A,A,A,C,C,E
NOW USING BACK TRACK:
I –E –C-A
A
B C D
E
F G
I H
Some applications of Graph
Theory
 Models for communications and electrical
networks
 Models for computer architectures
 Network optimization models for
operations analysis, including scheduling
and job assignment
 Analysis of Finite State Machines
 Parsing and code optimization in
compilers
Adjacency list structure
coding
Any Question..??
THANK YOU
What is a Graph: Vertices, Edges, Types of Graphs Explained

More Related Content

Similar to What is a Graph: Vertices, Edges, Types of Graphs Explained

Similar to What is a Graph: Vertices, Edges, Types of Graphs Explained (10)

Research
ResearchResearch
Research
 
Discrete2
Discrete2Discrete2
Discrete2
 
Discrete ad
Discrete adDiscrete ad
Discrete ad
 
Unit-6 Graph.ppsx ppt
Unit-6 Graph.ppsx                                       pptUnit-6 Graph.ppsx                                       ppt
Unit-6 Graph.ppsx ppt
 
graph representation.pdf
graph representation.pdfgraph representation.pdf
graph representation.pdf
 
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
 
Graph
GraphGraph
Graph
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Graph Basic In Data structure
Graph Basic In Data structureGraph Basic In Data structure
Graph Basic In Data structure
 

More from Zakaria Hossain

GPS tracking in Aircraft
GPS tracking in AircraftGPS tracking in Aircraft
GPS tracking in AircraftZakaria Hossain
 
Home Automation System - Arduino
Home Automation System - ArduinoHome Automation System - Arduino
Home Automation System - ArduinoZakaria Hossain
 
Real Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPUReal Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPUZakaria Hossain
 
Arduino Line following Car
Arduino Line following CarArduino Line following Car
Arduino Line following CarZakaria Hossain
 
Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)Zakaria Hossain
 
24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)Zakaria Hossain
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Zakaria Hossain
 
Presentation about Blockchain technology
Presentation about Blockchain technologyPresentation about Blockchain technology
Presentation about Blockchain technologyZakaria Hossain
 
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...Zakaria Hossain
 
Travelling to South Africa
Travelling to South AfricaTravelling to South Africa
Travelling to South AfricaZakaria Hossain
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and DesignZakaria Hossain
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationZakaria Hossain
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statisticsZakaria Hossain
 
Uses of economics in computer science
Uses of economics in computer scienceUses of economics in computer science
Uses of economics in computer scienceZakaria Hossain
 
Presentaion on Bio-Informatics
Presentaion on Bio-InformaticsPresentaion on Bio-Informatics
Presentaion on Bio-InformaticsZakaria Hossain
 
Calendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly LanguageCalendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly LanguageZakaria Hossain
 
Different types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with AnimationDifferent types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with AnimationZakaria Hossain
 
Subentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationSubentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationZakaria Hossain
 
Lagrange's equation with one application
Lagrange's equation with one applicationLagrange's equation with one application
Lagrange's equation with one applicationZakaria Hossain
 

More from Zakaria Hossain (20)

GPS tracking in Aircraft
GPS tracking in AircraftGPS tracking in Aircraft
GPS tracking in Aircraft
 
Home Automation System - Arduino
Home Automation System - ArduinoHome Automation System - Arduino
Home Automation System - Arduino
 
Real Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPUReal Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPU
 
Arduino Line following Car
Arduino Line following CarArduino Line following Car
Arduino Line following Car
 
Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)
 
Online event solution
Online event solutionOnline event solution
Online event solution
 
24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
 
Presentation about Blockchain technology
Presentation about Blockchain technologyPresentation about Blockchain technology
Presentation about Blockchain technology
 
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
 
Travelling to South Africa
Travelling to South AfricaTravelling to South Africa
Travelling to South Africa
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentation
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
 
Uses of economics in computer science
Uses of economics in computer scienceUses of economics in computer science
Uses of economics in computer science
 
Presentaion on Bio-Informatics
Presentaion on Bio-InformaticsPresentaion on Bio-Informatics
Presentaion on Bio-Informatics
 
Calendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly LanguageCalendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly Language
 
Different types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with AnimationDifferent types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with Animation
 
Subentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationSubentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentation
 
Lagrange's equation with one application
Lagrange's equation with one applicationLagrange's equation with one application
Lagrange's equation with one application
 

Recently uploaded

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 

What is a Graph: Vertices, Edges, Types of Graphs Explained

  • 2. What is graph Graphs consist of  points called vertices  lines called edges 1. Edges connect two vertices. 2. Edges only intersect at vertices. 3. Edges joining a vertex to itself are called loops.
  • 3. Example FlexoFlexo BenderBender LeelaLeela FryFry AmyAmy This is also a graph. The vertices just happen to have people’s names. Such a graph could represent friendships (or any kind of relationship). FarnsworthFarnsworth ZoidbergZoidberg
  • 4. Theory of Large Graphs Large graphs  Billion vertices  Exact edges present not critical Theoretical basis for study of large graphs  Maybe theory of graph generation  Invariant to small changes in definition  Must be able to prove basic theorems
  • 5. Type of graph Weighted Graph Undirected Graph Directed Graph Connected Graphs Complete Graphs
  • 6. TRAVERSING A GRAPH 1.DFS: DFS means death first search, we use here STACK 2.BFS: BFS means breath first search, we use here QUEUE
  • 7. DFS Print :C STACK:E,F,D Print:D STACK:E,F Print:F STACK:E,I Print:I STACK:E,H Print:H STACK:E,G Print:E STACK:B Print:B STACK; C,D,F,I,H,G,E A B C D E F G I H
  • 8. ADJACENCY LIST A B,C,D H F,G B C I H C E,F,D D F E I,B F I G F,D A B C D E F G I H
  • 9. BFS  FRONT=1 QUEUE=A REAR=1 ORIG= NULL FRONT=2 QUEUE=A,B,C,D REAR=4 ORIG=NULL, A,A,A FRONT=3 QUEUE=A,B,C,D REAR=4 ORIG=NULL,A,A,A,C ………… FRONT=5 QUEUE=A,B,C,D,E,F,I REAR=7 QUEUE=NULL,A,A,A,C,C,E NOW USING BACK TRACK: I –E –C-A A B C D E F G I H
  • 10. Some applications of Graph Theory  Models for communications and electrical networks  Models for computer architectures  Network optimization models for operations analysis, including scheduling and job assignment  Analysis of Finite State Machines  Parsing and code optimization in compilers
  • 11.

Editor's Notes

  1. Zakaria Hossain