Terminologies and Special Types of Graphs
Terminologies and Special Types of Graphs
E(G) = {e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11}
Order: |𝐺| = 7
Size: ∥ 𝐺 ∥ = 11
Loop: e3 and e8
e1 e4
e5
e2 e8
e6
e9
e7
e10
arcs (UG):
The degree of a vertex in an undirected graph is A pendant vertex is a vertex whose degree is 1.
the number of edges incident with it, except that a
loop at a vertex contributes twice to the degree of An isolated vertex is a vertex whose degree is 0.
that vertex, denoted deg(v).
Ex.
Pendant Vertex: f
Isolated Vertex: g
deg(a) = 4 deg(e) = 3
deg(c) = 2 deg(g) = 0 The graph G = (V, E), where V = {v1, v2, v3,...,vn}
and E = {e1, e2, e3,...,en}, satisfies ∑𝑛𝑖=1 𝑑(𝑣𝑖 ) = 𝑚.
deg(d) = 2 *m is the number of edges.
Ex.
Theorem 1:
a b
In a graph G, the sum of the degrees of all vertices
is twice the number of edges.
c
Corollary 1.1:
e d The sum of degrees of vertices of a graph is an
even number.
deg-(a) = 1 deg+(a) = 3 Corollary 1.2:
deg-(b) = 4 deg+(b) = 3 In a graph G, the number of odd degree is even.
deg-(e) = 4 deg+(e) = 4 e
c d
deg(a) = 3 Properties of Walk, Trail, Path, Circuit and Cycle
Theorem 2:
vertices a and d; b and e have the same degree b - c - d - e - f - d - h is a trail since there is no
repeated edges. Note: a repeated vertex is
f g h permissible like the case of vertex d.
1 3
10 7
deg(a) = 2 deg(e) = 4
deg(b) = 4 deg(f ) = 4 11
deg(c) = 4 deg(g) = 2 9 8
deg(d) = 4
5 4
therefore a graph is eulerian since every vertex of
graph is of even degree.
1 - 5 - 10 - 2 - 7 - 4 - 9 - 11 - 8 - 3 - 6 is an
a - c - f - g - e - d - c - b - d - f - e - b - a is an hamiltonian path since it visits each vertex exactly
Eulerian circuit in graph. (it covers all the edges once. ( it is okay if it does not start and end at the
once) same vertex)
An Euler Path is a path that uses every edge in the
A Hamiltonian circuit is a path that uses each
graph exactly once but it does not start and end at
the same vertex. vertex of a graph exactly once and returns to the
starting vertex. A graph that contains a Hamiltonian
Theorem: A connected graph contains an Euler circuit
path if and only if the graph has exaclty two vertices
a
of odd degrees with all other vertices of even
degrees. Every Euler path must start at one of the
vertices of odd degrees and end at the other. h
g i
e f j b
q r
p s
o k
t
deg(b) = 3 deg(e) = 4 n l
m
deg(c) = 3 deg(f ) = 4
d c
deg(d) = 4 deg(g) = 2
a - b- c - d - e - f - o - n - m - l - k - j - i - r - s - t - p - q - g
*therefore a graph contains an eulerian path since it
has exactly two vertices of odd degree. - h - a is a hamiltonian circuit since it uses each vertex
exactly once and returns to the starting vertex.