SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
Chuckie Balbuena
 
Graph theory
Graph theory Graph theory
Graph theory
iranian translate
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
Manikanta satyala
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
Priyank Jain
 
Graph theory
Graph theoryGraph theory
Graph theory
Thirunavukarasu Mani
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
Graph theory
Graph theoryGraph theory
Graph theory
Jeane Paguio
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
Tech_MX
 
Connectivity of graph
Connectivity of graphConnectivity of graph
Connectivity of graph
Shameer P Hamsa
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
NilaNila16
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
Ashikur Rahman
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
showslidedump
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
Rashika Ahuja
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
Anuj Modi
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
Tech_MX
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
ishan743441
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
Abrish06
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
mohammad alkhalil
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
Chuckie Balbuena
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
Manikanta satyala
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
Tech_MX
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
NilaNila16
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
showslidedump
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
Anuj Modi
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
Tech_MX
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
ishan743441
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
Abrish06
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
mohammad alkhalil
 

Viewers also liked (19)

Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
Tech_MX
 
Graph
GraphGraph
Graph
ssnetvnr
 
Graph theory
Graph theoryGraph theory
Graph theory
Lifeparticle
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
Milan Joshi
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
David Simons
 
Graph data structure
Graph data structureGraph data structure
Graph data structure
Tech_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 Colouring
Saurabh Kaushik
 
Graph theory
Graph theoryGraph theory
Graph theory
Kumar
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
 
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
Joyprakash Lairenlakpam
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Shivam Singh
 
2 Graph Theory
2 Graph Theory2 Graph Theory
2 Graph Theory
Maksim Tsvetovat
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theory
sulaiman alfahad
 
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
Reihaneh Safavi
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
Umang Aggarwal
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network Analysis
Premsankar Chakkingal
 
CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1
David Wood
 
Graph theory[1]
Graph theory[1]Graph theory[1]
Graph theory[1]
sethamit
 
Graph theory
Graph theoryGraph theory
Graph theory
grahamwell
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
Tech_MX
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
Milan Joshi
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
David Simons
 
Graph data structure
Graph data structureGraph data structure
Graph data structure
Tech_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 Colouring
Saurabh Kaushik
 
Graph theory
Graph theoryGraph theory
Graph theory
Kumar
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
 
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
Joyprakash Lairenlakpam
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theory
sulaiman alfahad
 
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
Reihaneh Safavi
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
Umang Aggarwal
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network Analysis
Premsankar Chakkingal
 
CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1CPSC 125 Ch 5 Sec 1
CPSC 125 Ch 5 Sec 1
David Wood
 
Graph theory[1]
Graph theory[1]Graph theory[1]
Graph theory[1]
sethamit
 
Ad

Similar to 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
nabati
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
ARVIND SARDAR
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
ARVIND SARDAR
 
graphass1-23022111180722548-1ba6b00a.ppt
graphass1-23022111180722548-1ba6b00a.pptgraphass1-23022111180722548-1ba6b00a.ppt
graphass1-23022111180722548-1ba6b00a.ppt
ssuser7b9bda1
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
Hector Zenil
 
Graph
GraphGraph
Graph
Mudassar Mushtaq
 
GRAPH THEORY - Basic definition with examples
GRAPH THEORY - Basic definition with examplesGRAPH THEORY - Basic definition with examples
GRAPH THEORY - Basic definition with examples
Gayathri M
 
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
 
Graph in Data Structure
Graph in Data StructureGraph in Data Structure
Graph in Data Structure
Prof 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 answers
appasami
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
kailash shaw
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________
ssuser1989da
 
09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf
Prasanna David
 
Graphs
GraphsGraphs
Graphs
amudha arul
 
UNIT III discrete mathematice notes availiable
UNIT III discrete mathematice notes availiableUNIT III discrete mathematice notes availiable
UNIT III discrete mathematice notes availiable
CHHAYANAYAK5
 
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
Muhammad Danish Badar
 
Graph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptxGraph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptx
sahilpawar2426
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
hijigaf
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
RakeshPandey951330
 
Unit ix graph
Unit   ix    graph Unit   ix    graph
Unit ix graph
Tribhuvan University
 
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
nabati
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
ARVIND SARDAR
 
graphass1-23022111180722548-1ba6b00a.ppt
graphass1-23022111180722548-1ba6b00a.pptgraphass1-23022111180722548-1ba6b00a.ppt
graphass1-23022111180722548-1ba6b00a.ppt
ssuser7b9bda1
 
GRAPH THEORY - Basic definition with examples
GRAPH THEORY - Basic definition with examplesGRAPH THEORY - Basic definition with examples
GRAPH THEORY - Basic definition with examples
Gayathri M
 
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
 
Graph in Data Structure
Graph in Data StructureGraph in Data Structure
Graph in Data Structure
Prof 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 answers
appasami
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________
ssuser1989da
 
UNIT III discrete mathematice notes availiable
UNIT III discrete mathematice notes availiableUNIT III discrete mathematice notes availiable
UNIT III discrete mathematice notes availiable
CHHAYANAYAK5
 
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
Muhammad Danish Badar
 
Graph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptxGraph_data_structure_information_engineering.pptx
Graph_data_structure_information_engineering.pptx
sahilpawar2426
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
hijigaf
 
Ad

More from 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
Premsankar Chakkingal
 
AI in Creative Space
AI in Creative SpaceAI in Creative Space
AI in Creative Space
Premsankar 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 Speeches
Premsankar Chakkingal
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social Science
Premsankar 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 NetLogo
Premsankar 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 EVALUVATION
Premsankar 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 system
Premsankar 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 Kerala
Premsankar 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 Networks
Premsankar Chakkingal
 
Hypothesis Testing for Beginners
Hypothesis Testing for BeginnersHypothesis Testing for Beginners
Hypothesis Testing for Beginners
Premsankar Chakkingal
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
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 Classrooms
Premsankar 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 Speeches
Premsankar Chakkingal
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social Science
Premsankar 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 NetLogo
Premsankar 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 EVALUVATION
Premsankar 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 system
Premsankar 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 Kerala
Premsankar 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 Networks
Premsankar Chakkingal
 

Recently uploaded (20)

Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 

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