10.1. Graphs
10.1. Graphs
10.1. Graphs
✓Introduction
✓Definition of Graphs
✓Types of Graphs
✓Order & Size of Graphs
✓Degree of Vertex
✓Source & Sink
Definition of Graphs
V = {A, B, C, D, E, F}
E = {(A, B), (A, C), (A, F), (B, C), (C, D),
(C, E), (D, E), (F, E)}
Adjacent Vertices
Directed Graphs
A graph in which
every edge is
directed is called
directed graph or
digraph.
Undirected Graphs
A graph in which
every edge is
undirected is called
undirected graph.
TYPES OF GRAPHS (ctd…)
Mixed Graphs
A mixed graph
in which both
directed and
undirected
edges may exist.
TYPES OF GRAPHS (ctd…)
Self Loops
Order = 4 Size = 3
deg(a) = 2
deg(b) = 2
deg(c) = 3
deg(d) = 1
A vertex A vertex V
V with with zero
zero outdegree
indegree is called
is called sink
source
Some RESULTS
RESULT 1
deg v = 2|E|
RESULT 2
RESULT 3
RESULT 4
Degree sequence of a
graph is the list of degree
of all the vertices of the
graph. Usually we list the
degrees in non increasing
order, that is from largest
degree to smallest
degree.