Module 1 Introduction To Graph Theory and Probabilistic Graphical Models
Module 1 Introduction To Graph Theory and Probabilistic Graphical Models
Subject Incharge
Dr. Bidisha Roy
Associate Professor
Room No. 401
email: bidisharoy@sfit.ac.in
Module 1: Part II
Introduction to Graph Theory and PGMs
Topics to be covered
❑Applications of PGM
Topics to be covered
❑Applications of PGM
Graph Theory
❑Study of graphs
❑Mathematical structures used to model pairwise
relations between objects
❑Many problems in computer science, physics, chemistry,
biology, genetics, social sciences, sociology, linguistics and
other fields can be represented as graph problems
❑Group theory, matrix theory, probability, topology have
close connection with graph theory
Graphs
❑G=(V, E), a non-empty set V of vertices (or nodes, points)
and a set E of edges (or links, arcs)
❑Vertex/Node
❑Basic element of a graph
❑Drawn as a node/dot
❑Vertex set of G usually denoted as V(G) or V or VG
❑Edge/Links/Arcs
❑A set of two elements
❑Drawn as a line connecting two vertices, called end vertices or
end points
❑Usually denoted by E(G) or E or EG
St. Francis Institute of Technology PGM
Department of Computer Engineering Dr. Bidisha Roy 6
The material in this presentation belongs to St. Francis Institute of Technology and is solely for educational purposes. Distribution and modifications of the content is prohibited.
Graphs
❑Neighborhood
❑The set of nodes its connected to via an edge, represented as N(v)
Types of Graphs
❑Dense
❑Sparse
❑Directed/Directional
❑Undirected (unordered)
❑Weighted
Terminologies
❑Degree of a node:- In an Undirected Graph, it is the number
of edges connected to a node.
Practice Problems
Graph Terminologies
❑ Degree of a node:- For Directed Graph,
❑ The in-degree of a vertex v is the number of edges incident to
that node i.e. Edges coming to that node.
❑The out-degree of a vertex v is the number of edges incident
from that node i.e. Edges going out from that node.
Node Indegree Outdegree
1 0 3
2 1 2
3 2 1
4 3 3
5 1 2
6 3 0
7 2 1
St. Francis Institute of Technology PGM
Department of Computer Engineering Dr. Bidisha Roy 10
The material in this presentation belongs to St. Francis Institute of Technology and is solely for educational purposes. Distribution and modifications of the content is prohibited.
Graph Terminologies
❑Subgraph:- A graph G’ whose vertex sets and edge sets are subsets
of Graph G
❑Every graph is a subgraph of itself
Graph Terminologies
❑ Path:- A sequence of edges connecting a sequence of distinct
vertices or no repeated vertices.
LENGTH OF THE PATH:- Total edges included in the path.
1–5–2–4–3–6
4–3–2–5–4–6
❑ Trail:- No repeated edges or a path where all edges are distinct
❑ Cycle:- Trail, except that the last vertex is the same as the first vertex
❑ Loop:- An edge that connects a vertex to itself
St. Francis Institute of Technology PGM
Department of Computer Engineering Dr. Bidisha Roy 12
The material in this presentation belongs to St. Francis Institute of Technology and is solely for educational purposes. Distribution and modifications of the content is prohibited.
Graph Terminologies
❑Subgraph:- A graph G’ whose vertex sets and edge sets are subsets
of Graph G
❑Every graph is a subgraph of itself
PGMs
❑Statistical models that encode complex joint multivariate probability
distributions using graphs
Bayesian Networks
❑Vertices/Nodes correspond to RVs
Bayesian Networks
Markov Model
❑Also known as Markov Chain
Markov Model
Summary
❑Graph Theory
❑PGMs
❑Bayesian Networks
❑Markov Models