DM (Vertex, Degree, Graphs
DM (Vertex, Degree, Graphs
Graph Theory
Presentors: Adrienne M. Medenilla &
Louielee O. Corpuz
Learning Objectives:
01 Learn the definition 03 Discover their
of Vertex, Degree, Practical uses in
& Graphs (Regular Computer Science
Graphs)
02 Examine some of
their Examples/
Illustrations
WHAT IS GRAPH is the study of the graph.
A graph is determined as a
THEORY? mathematical structure that
represents a particular
function by connecting a set
f(x) = x of points. It is used to create
a pairwise relationship
between objects.
v VERTEX (VERTICES)
Also called a NODE of a graph is one
of the objects that are connected
together. The connections between
the vertices are called EDGES or ISOLATED VERTEX
LINKS.
A vertex of a graph that has no
edges is a vertex with zero (0)
degree.
v DEGREE of a Vertex
the number of edges connected to a
vertex. It is denoted deg(v)
Here, we have:
Deg(A) = 3,
Deg(B) = 2,
Deg(C) = 3, and
Deg(D) = 2.
WHAT IS GRAPH?
A graph is a pictorial representation
of any data. BASIC TYPES OF GRAPH:
v Infinite Graph - A graph is said to be v Simple Graph - does not contain more
infinite if it has an infinite number of than one edge between the pair of vertices.
vertices as well as an infinite number of A simple railway track connecting different
edges. cities is an example of a simple graph.
TYPES OF GRAPHS
v Null Graph - A graph of order n and size
v Multi Graphs - Any graph which contains zero is a graph where there are only isolated
some parallel edges but doesn’t contain any vertices with no edges. Also be referred to as
self-loop. For example a Road Map. an edgeless graph, an isolated graph, or a
discrete graph
• Parallel Edges: If two vertices are connected
with more than one edge, meaning there are
many routes but one destination.
• Loop: An edge of a graph that starts from a
vertex and ends at the same vertex.
v Complete/Full Graph - A simple graph
with n vertices is called a complete graph if
the degree of each vertex is n-1
TYPES OF GRAPHS
v Pseudo Graphs - A graph G with a self- v Bipartite Graph - is a type of graph where
loop and some multiple edges. In contrast, the vertices can be split into two separate
a simple graph is a graph that does not groups, often called "partitions" or "sets," in
allow for loops or multiple edges. such a way that all edges connect vertices
from one partition to the other and not
within the same partition.
5 This is when two vertices are connected with more than one
edge is called _____
9 It is a graph that does not contain more than one edge between
the pair of vertices.