Module 7 Graphs
Module 7 Graphs
S OF
GRAPHS
MODULE 8
OBJECTIVES
• Characterize and construct different kinds of graphs;
• Differentiate Eulerian graphs and Hamiltonian graphs;
• Use mathematical concepts and tools in other areas such
as networks, circuits and systems.
TOPICS
1. Basic Concepts of Graph Theory
2. Eulerian Graphs
3. Hamiltonian Graphs
Basic
Concepts of
Graph Theory
• GRAPH – collection of vertices (also
called points or nodes) and edges (or
lines).
• The set V(G) is called vertex set of G
• The set E(G) is called the edge set of G
Example:
G = ( V(G) , E(G) )
where V(G) = { a, b, c , d , e }
E(G) = { ab, cd, be, ae }
G:
• The number of vertices in a graph G is
called its ORDER (p)
• The number of edges on a graph G is called
its SIZE (q)
G:
Order of G = p = 5
Size of G = q = 6
• The ends of an edge are said to be
INCIDENT with the edge, and vice versa
• Two vertices which are incident with a
common edge are ADJACENT as are two
edges which are incident with a common
vertex
G: • V1 is incident with
edge v1v4
• V3 and v2 are
adjacent
• An edge with identical ends is called a
LOOP
• An edge with distinct ends is called a LINK
TRIVIAL GRAPH
a graph with just one vertex
G: ● a
all other graphs are called NONTRIVIAL
SIMPLE GRAPH
• a graph with no G:
loops and no two
of its links join
the same pair of
vertices
COMPLETE GRAPH is a simple graph in
which each pair of distinct vertices is joined
by an edge. It is donated by Kn.
EMPTY GRAPH is a graph with no edges.
G1:
G2: ● ●
● ●
VERTEX DEGREES
a b
• d(a) = 3
c • d(f) = 5
d
• d(c) = 4
g e
f
2-regular graph
PATHS AND
CONNECTION
WALK – a walk in a graph G is an
alternating sequence
W: v0, e1, v1, e2, v2, …, vn-1, en, vn (n≥0) of
vertices and edges, beginning and ending
with vertices
• The length of a walk is the of edges it
encounters
• A walk of length 0 is called a trivial walk
example :
WALK: v1-1-v2-3-v3-3-v2-5-v5
Special Kinds of Walks
•TRAIL
• a walk in which no edge is repeated
•PATH
• A trail in which no vertex is repeated
example :
TRAIL: v1-1-v2-5-v5-10-V6-9-V5
example :
PATH: v1-1-v2-5-v5-10-V6
Two vertices u and v of G are said to be
connected if there is a (u,v)- path in G.