SlideShare uma empresa Scribd logo
1 de 35
Introduction to Graph Theory
HANDBOOK OF GRAPH THEORY FOR FRESHER'S

Prem Sankar C
M Tech Technology Management
Dept of Futures Studies ,Kerala University
Outline
1.
2.
3.
4.
5.

History of Graph Theory
Basic Concepts of Graph Theory
Graph Representations
Graph Terminologies
Different Type of Graphs
Why Graph Theory ?

 Graphs used to model pair wise relations between

objects
 Generally a network can be represented by a graph
 Many practical problems can be easily represented
in terms of graph theory
Graph Theory - History
The origin of graph theory can be traced back to Euler's work on the
Konigsberg bridges problem (1735), which led to the concept of an
Eulerian graph. The study of cycles on polyhedra by the Thomas P.
Kirkman (1806 - 95) and William R. Hamilton (1805-65) led to the
concept of a Hamiltonian graph.
Graph Theory - History
 Begun in 1735
 Mentioned in Leonhard Euler's

paper on “Seven Bridges of
Konigsberg ” .

Problem : Walk all 7 bridges
without crossing a bridge twice
Graph Theory – History…….
Cycles in Polyhedra - polyhedron with no Hamiltonian cycle

Thomas P. Kirkman

William R. Hamilton

Hamiltonian cycles in Platonic graphs
Graph Theory – History…..
Trees in Electric Circuits

Gustav Kirchhoff
Basic Concepts of Graph Theory
Definition: Graph
 A graph is a collection of nodes and edges

 Denoted by G = (V, E).

V = nodes (vertices, points).
E = edges (links, arcs) between pairs of nodes.
Graph size parameters: n = |V|, m = |E|.

Vertex & Edge
 Vertex /Node





Basic Element
Drawn as a node or a dot.
Vertex set of G is usually denoted by V(G), or V or VG

 Edge /Arcs




A set of two elements
Drawn as a line connecting two vertices, called end vertices, or
endpoints.
The edge set of G is usually denoted by E(G), or E or EG

 Neighborhood


For any node v, the set of nodes it is connected to via an edge is
called its neighborhood and is represented as N(v)
Graph :Example

 n:= 6 , m:=7
 Vertices (V) :={1,2,3,4,5,6}

{1,2},{1,5},{2,3},{2,5},{3,4},{4,5},{4,6}}
 N(4) := Neighborhood (4) ={6,5,3}
 Edge (E) :=
Edge types:


Undirected;




Directed; ordered pairs of nodes.





E.g., distance between two cities, friendships…
E.g ,…
Directed edges have a source (head, origin) and target (tail,
destination) vertices

Weighted ; usually weight is associated .
Empty Graph / Edgeless graph
 No edge

 Null graph
 No nodes
 Obviously no edge
Simple Graph (Undirected)
 Simple Graph are undirected graphs without loop or

multiple edges
 A = AT

F or sim ple graphs,

deg( v i )
vi V

2|E |
Directed graph : (digraph)
 Edges have directions
 A !=AT

loop
multiple arc

arc

node
Weighted graph
 is a graph for which each edge has an associated weight

1

2

1.2
2

3

.2
.3

.5
4

1.5
5

.5

1

6

5

1

4

3

2

5

3
6
Bipartite Graph
V can be partitioned into 2 sets V1 and V2
such that (u,v) E implies
either u V1 and v V2
OR v V1 and u V2.
Trees
 An undirected graph is a tree if it is connected and does not

contain a cycle (Connected Acyclic Graph)
 Two nodes have exactly one path between them
Subgraph
 Vertex and edge sets are subsets of those of G
 a supergraph of a graph G is a graph that contains G as a
subgraph.
Graph Representations
1. Adjacency Matrix
 n-by-n matrix with Auv = 1 if (u, v) is an edge.



Diagonal Entries are self-links or loops
Symmetric matrix for undirected graphs

1
2
3
4
5
6
7
8

1
0
1
1
0
0
0
0
0

2
1
0
1
1
1
0
0
0

3
1
1
0
0
1
0
1
1

4
0
1
0
1
1
0
0
0

5
0
1
1
1
0
1
0
0

6
0
0
0
0
1
0
0
0

7
0
0
1
0
0
0
0
1

8
0
0
1
0
0
0
1
0
2. Incidence Matrix



VxE
[vertex, edges] contains the edge's data

1, 2

1,5

2 ,3

2 ,5

3, 4

4 ,5

4 ,6

1

1

1

0

0

0

0

0

2

1

0

1

1

0

0

0

3

0

0

1

0

1

0

0

4

0

0

0

0

1

1

1

5

0

1

0

1

0

1

0

6

0

0

0

0

0

0

1
3. Adjacency List
 Edge List

Edge List
12
12
23
25
33
43
45
53
54

 Adjacency List (node list)

Node List
122
235
33
435
534
Edge Lists for Weighted Graphs

Edge List
1 2 1.2
2 4 0.2
4 5 0.3
4 1 0.5
5 4 0.5
6 3 1.5
Graph Terminologies
Classification of Graph Terms



Global terms refer to a whole graph
Local terms refer to a single node in a graph
Connected and Isolated vertex

 Two vertices are connected if there is a path

between them
 Isolated vertex – not connected
1

isolated vertex

2

3

4

5

6
Adjacent nodes
 Adjacent nodes -Two nodes are adjacent if they

are connected via an edge.
 If edge e={u,v} ∈ E(G), we say that u and v are adjacent or neigbors

 An edge where the two end vertices are the same is called a

loop, or a self-loop
Degree (Un Directed Graphs)
 Number of edges incident on a node

The degree of 5 is 3
Degree (Directed Graphs)


In-degree: Number of edges entering



Out-degree: Number of edges leaving



Degree = indeg + outdeg

outdeg(1)=2
indeg(1)=0
outdeg(2)=2
indeg(2)=2
outdeg(3)=1
indeg(3)=4
Walk
 trail: no edge can be repeat

a-b-c-d-e-b-d

 walk: a

path in which edges/nodes
can be repeated.
a-b-d-a-b-c

 A walk is closed is a=c
Paths
 Path: is a sequence P of nodes v1, v2, …, vk-1, vk
 No vertex can be repeated

 A closed path is called a cycle
 The length of a path or cycle is the number of edges visited in the path

or cycle

1,2,5,2,3,4
walk of length 5

Walks and Paths
1,2,5,2,3,2,1
CW of length 6

1,2,3,4,6
path of length 4
Cycle
 Cycle - closed path: cycle (a-b-c-d-a) , closed if x=y
 Cycles denoted by Ck, where k is the number of nodes in the

cycle

C3

C4

C5
Shortest Path
 Shortest Path is the path between two nodes

that has the shortest length
 Length – number of edges.
 Distance between u and v is the length of a shortest
path between them
 The diameter of a graph is the length of the longest
shortest path between any pairs of nodes in the
graph
THANK YOU
Prem Sankar C
M Tech Technology Management
Dept of Futures Studies
Kerala University

Prem Sankar C - Dept of Futures Studies

Mais conteúdo relacionado

Mais procurados

Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithmsana younas
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network systemManikanta satyala
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theoryChuckie Balbuena
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cutMayank Garg
 
Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)sobia1122
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
Graph theory
Graph theoryGraph theory
Graph theoryKumar
 
Isomorphic graph
Isomorphic graphIsomorphic graph
Isomorphic graphumair khan
 
Graphs in Data Structure
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structurehafsa komal
 
Group Theory and Its Application: Beamer Presentation (PPT)
Group Theory and Its Application:   Beamer Presentation (PPT)Group Theory and Its Application:   Beamer Presentation (PPT)
Group Theory and Its Application: Beamer Presentation (PPT)SIRAJAHMAD36
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theoryArvindBorge
 
Graph Theory Introduction
Graph Theory IntroductionGraph Theory Introduction
Graph Theory IntroductionMANISH T I
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphsTech_MX
 

Mais procurados (20)

Graph theory
Graph theory Graph theory
Graph theory
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
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 in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cut
 
Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)
 
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
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Isomorphic graph
Isomorphic graphIsomorphic graph
Isomorphic graph
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Graphs in Data Structure
 Graphs in Data Structure Graphs in Data Structure
Graphs in Data Structure
 
Group Theory and Its Application: Beamer Presentation (PPT)
Group Theory and Its Application:   Beamer Presentation (PPT)Group Theory and Its Application:   Beamer Presentation (PPT)
Group Theory and Its Application: Beamer Presentation (PPT)
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Graph Theory Introduction
Graph Theory IntroductionGraph Theory Introduction
Graph Theory Introduction
 
Trees and graphs
Trees and graphsTrees and graphs
Trees and graphs
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
 

Destaque

CS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf bookCS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf bookappasami
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1Tech_MX
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and lifeMilan Joshi
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in PractiseDavid Simons
 
Graph data structure
Graph data structureGraph data structure
Graph data structureTech_MX
 
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
 
EE-304 Electrical Network Theory [Class Notes1] - 2013
EE-304 Electrical Network Theory [Class Notes1] - 2013EE-304 Electrical Network Theory [Class Notes1] - 2013
EE-304 Electrical Network Theory [Class Notes1] - 2013Joyprakash Lairenlakpam
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theorysulaiman alfahad
 
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_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applicationsmohammad alkhalil
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug designReihaneh Safavi
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theoryUmang Aggarwal
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network AnalysisPremsankar Chakkingal
 
CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1David Wood
 

Destaque (20)

CS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf bookCS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf book
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
 
Graph
GraphGraph
Graph
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
 
Graph data structure
Graph data structureGraph data structure
Graph data structure
 
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
 
EE-304 Electrical Network Theory [Class Notes1] - 2013
EE-304 Electrical Network Theory [Class Notes1] - 2013EE-304 Electrical Network Theory [Class Notes1] - 2013
EE-304 Electrical Network Theory [Class Notes1] - 2013
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
2 Graph Theory
2 Graph Theory2 Graph Theory
2 Graph Theory
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in 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_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug design
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network Analysis
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
 
CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1
 

Semelhante a Introduction to Graph Theory

Graph theory concepts complex networks presents-rouhollah nabati
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabatinabati
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptxARVIND SARDAR
 
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.pptxasimshahzad8611
 
Graph in Data Structure
Graph in Data StructureGraph in Data Structure
Graph in Data StructureProf Ansari
 
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
 
Graphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ programGraphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ programMuhammad Danish Badar
 
Graph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptxGraph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptxsahilpawar2426
 
graph.pptx
graph.pptxgraph.pptx
graph.pptxhijigaf
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashingVictor Palmar
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptishan743441
 
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.pptxmiki304759
 

Semelhante a Introduction to Graph Theory (20)

Graph theory concepts complex networks presents-rouhollah nabati
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabati
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
Graph
GraphGraph
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
 
Graph in Data Structure
Graph in Data StructureGraph in Data Structure
Graph in Data Structure
 
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 Theory
Graph TheoryGraph Theory
Graph Theory
 
09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf
 
Graphs
GraphsGraphs
Graphs
 
Graphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ programGraphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ program
 
Graph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptxGraph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptx
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
 
Unit ix graph
Unit   ix    graph Unit   ix    graph
Unit ix graph
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashing
 
Unit 9 graph
Unit   9 graphUnit   9 graph
Unit 9 graph
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
 
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
 

Mais de Premsankar Chakkingal

AI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the ClassroomsAI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the ClassroomsPremsankar Chakkingal
 
Dynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day SpeechesDynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day SpeechesPremsankar Chakkingal
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social SciencePremsankar Chakkingal
 
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...Premsankar Chakkingal
 
Introduction to Agent Based Modeling Using NetLogo
Introduction to Agent Based Modeling Using NetLogoIntroduction to Agent Based Modeling Using NetLogo
Introduction to Agent Based Modeling Using NetLogoPremsankar Chakkingal
 
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...Premsankar Chakkingal
 
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
 INTRODUCTION INFORMATION RETRIEVAL EVALUVATION INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
INTRODUCTION INFORMATION RETRIEVAL EVALUVATIONPremsankar Chakkingal
 
Negotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender systemNegotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender systemPremsankar Chakkingal
 
Business potential of Energy Auditing in Kerala
Business potential of Energy Auditing in KeralaBusiness potential of Energy Auditing in Kerala
Business potential of Energy Auditing in KeralaPremsankar Chakkingal
 
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge NetworksNegotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge NetworksPremsankar Chakkingal
 

Mais de Premsankar Chakkingal (13)

AI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the ClassroomsAI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the Classrooms
 
AI in Creative Space
AI in Creative SpaceAI in Creative Space
AI in Creative Space
 
Dynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day SpeechesDynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day Speeches
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social Science
 
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
 
Introduction to Agent Based Modeling Using NetLogo
Introduction to Agent Based Modeling Using NetLogoIntroduction to Agent Based Modeling Using NetLogo
Introduction to Agent Based Modeling Using NetLogo
 
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...
 
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
 INTRODUCTION INFORMATION RETRIEVAL EVALUVATION INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
 
Negotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender systemNegotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender system
 
Business potential of Energy Auditing in Kerala
Business potential of Energy Auditing in KeralaBusiness potential of Energy Auditing in Kerala
Business potential of Energy Auditing in Kerala
 
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge NetworksNegotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
 
Hypothesis Testing for Beginners
Hypothesis Testing for BeginnersHypothesis Testing for Beginners
Hypothesis Testing for Beginners
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 

Último

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 

Último (20)

FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
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🔝
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 

Introduction to Graph Theory

  • 1. Introduction to Graph Theory HANDBOOK OF GRAPH THEORY FOR FRESHER'S Prem Sankar C M Tech Technology Management Dept of Futures Studies ,Kerala University
  • 2. Outline 1. 2. 3. 4. 5. History of Graph Theory Basic Concepts of Graph Theory Graph Representations Graph Terminologies Different Type of Graphs
  • 3. Why Graph Theory ?  Graphs used to model pair wise relations between objects  Generally a network can be represented by a graph  Many practical problems can be easily represented in terms of graph theory
  • 4. Graph Theory - History The origin of graph theory can be traced back to Euler's work on the Konigsberg bridges problem (1735), which led to the concept of an Eulerian graph. The study of cycles on polyhedra by the Thomas P. Kirkman (1806 - 95) and William R. Hamilton (1805-65) led to the concept of a Hamiltonian graph.
  • 5. Graph Theory - History  Begun in 1735  Mentioned in Leonhard Euler's paper on “Seven Bridges of Konigsberg ” . Problem : Walk all 7 bridges without crossing a bridge twice
  • 6. Graph Theory – History……. Cycles in Polyhedra - polyhedron with no Hamiltonian cycle Thomas P. Kirkman William R. Hamilton Hamiltonian cycles in Platonic graphs
  • 7. Graph Theory – History….. Trees in Electric Circuits Gustav Kirchhoff
  • 8. Basic Concepts of Graph Theory
  • 9. Definition: Graph  A graph is a collection of nodes and edges  Denoted by G = (V, E). V = nodes (vertices, points). E = edges (links, arcs) between pairs of nodes. Graph size parameters: n = |V|, m = |E|. 
  • 10. Vertex & Edge  Vertex /Node    Basic Element Drawn as a node or a dot. Vertex set of G is usually denoted by V(G), or V or VG  Edge /Arcs    A set of two elements Drawn as a line connecting two vertices, called end vertices, or endpoints. The edge set of G is usually denoted by E(G), or E or EG  Neighborhood  For any node v, the set of nodes it is connected to via an edge is called its neighborhood and is represented as N(v)
  • 11. Graph :Example  n:= 6 , m:=7  Vertices (V) :={1,2,3,4,5,6} {1,2},{1,5},{2,3},{2,5},{3,4},{4,5},{4,6}}  N(4) := Neighborhood (4) ={6,5,3}  Edge (E) :=
  • 12. Edge types:  Undirected;   Directed; ordered pairs of nodes.    E.g., distance between two cities, friendships… E.g ,… Directed edges have a source (head, origin) and target (tail, destination) vertices Weighted ; usually weight is associated .
  • 13. Empty Graph / Edgeless graph  No edge  Null graph  No nodes  Obviously no edge
  • 14. Simple Graph (Undirected)  Simple Graph are undirected graphs without loop or multiple edges  A = AT F or sim ple graphs, deg( v i ) vi V 2|E |
  • 15. Directed graph : (digraph)  Edges have directions  A !=AT loop multiple arc arc node
  • 16. Weighted graph  is a graph for which each edge has an associated weight 1 2 1.2 2 3 .2 .3 .5 4 1.5 5 .5 1 6 5 1 4 3 2 5 3 6
  • 17. Bipartite Graph V can be partitioned into 2 sets V1 and V2 such that (u,v) E implies either u V1 and v V2 OR v V1 and u V2.
  • 18. Trees  An undirected graph is a tree if it is connected and does not contain a cycle (Connected Acyclic Graph)  Two nodes have exactly one path between them
  • 19. Subgraph  Vertex and edge sets are subsets of those of G  a supergraph of a graph G is a graph that contains G as a subgraph.
  • 21. 1. Adjacency Matrix  n-by-n matrix with Auv = 1 if (u, v) is an edge.   Diagonal Entries are self-links or loops Symmetric matrix for undirected graphs 1 2 3 4 5 6 7 8 1 0 1 1 0 0 0 0 0 2 1 0 1 1 1 0 0 0 3 1 1 0 0 1 0 1 1 4 0 1 0 1 1 0 0 0 5 0 1 1 1 0 1 0 0 6 0 0 0 0 1 0 0 0 7 0 0 1 0 0 0 0 1 8 0 0 1 0 0 0 1 0
  • 22. 2. Incidence Matrix   VxE [vertex, edges] contains the edge's data 1, 2 1,5 2 ,3 2 ,5 3, 4 4 ,5 4 ,6 1 1 1 0 0 0 0 0 2 1 0 1 1 0 0 0 3 0 0 1 0 1 0 0 4 0 0 0 0 1 1 1 5 0 1 0 1 0 1 0 6 0 0 0 0 0 0 1
  • 23. 3. Adjacency List  Edge List Edge List 12 12 23 25 33 43 45 53 54  Adjacency List (node list) Node List 122 235 33 435 534
  • 24. Edge Lists for Weighted Graphs Edge List 1 2 1.2 2 4 0.2 4 5 0.3 4 1 0.5 5 4 0.5 6 3 1.5
  • 26. Classification of Graph Terms   Global terms refer to a whole graph Local terms refer to a single node in a graph
  • 27. Connected and Isolated vertex  Two vertices are connected if there is a path between them  Isolated vertex – not connected 1 isolated vertex 2 3 4 5 6
  • 28. Adjacent nodes  Adjacent nodes -Two nodes are adjacent if they are connected via an edge.  If edge e={u,v} ∈ E(G), we say that u and v are adjacent or neigbors  An edge where the two end vertices are the same is called a loop, or a self-loop
  • 29. Degree (Un Directed Graphs)  Number of edges incident on a node The degree of 5 is 3
  • 30. Degree (Directed Graphs)  In-degree: Number of edges entering  Out-degree: Number of edges leaving  Degree = indeg + outdeg outdeg(1)=2 indeg(1)=0 outdeg(2)=2 indeg(2)=2 outdeg(3)=1 indeg(3)=4
  • 31. Walk  trail: no edge can be repeat a-b-c-d-e-b-d  walk: a path in which edges/nodes can be repeated. a-b-d-a-b-c  A walk is closed is a=c
  • 32. Paths  Path: is a sequence P of nodes v1, v2, …, vk-1, vk  No vertex can be repeated  A closed path is called a cycle  The length of a path or cycle is the number of edges visited in the path or cycle 1,2,5,2,3,4 walk of length 5 Walks and Paths 1,2,5,2,3,2,1 CW of length 6 1,2,3,4,6 path of length 4
  • 33. Cycle  Cycle - closed path: cycle (a-b-c-d-a) , closed if x=y  Cycles denoted by Ck, where k is the number of nodes in the cycle C3 C4 C5
  • 34. Shortest Path  Shortest Path is the path between two nodes that has the shortest length  Length – number of edges.  Distance between u and v is the length of a shortest path between them  The diameter of a graph is the length of the longest shortest path between any pairs of nodes in the graph
  • 35. THANK YOU Prem Sankar C M Tech Technology Management Dept of Futures Studies Kerala University Prem Sankar C - Dept of Futures Studies