Chapter 8a. Graphs and Circuits
Chapter 8a. Graphs and Circuits
Core Idea
“Mathematics creates connections and fosters
efficiency through visual tools like graphs and
algorithms.”
learning objectives
1. define a graph;
6
4
1 5
B D
2 3
7
C
Historical background
Leonard Euler (1707-1783) – American mathematician
and logician introduced this formal definition of relation
GRAPH THEORYis a branch of mathematics
which illustrates and analyzes
connections between objects.
𝑬
𝑫 3
1
2 4
𝑭
DISCONNECTED GRAPH
A graph is disconnected if there is no
path to connect two vertex sets.
3
1
2 4
𝑰 𝑱
NULL GRAPH
It is a graph in which no edge is drawn
between any two vertices.
1
5 2
4 3
𝑴 𝑵
COMPLETE GRAPH
It is a graph in
which every
possible edge is
drawn between
the vertices.
Moreover, this
implies that
any two
vertices are
adjacent.
BIPARTITE
GRAPH
A graph is bipartite if it is possible to divide all its
vertices into two disjoint subsets such that every
edge in the graph connects a vertex in one subset
to a vertex in the other subset.
𝑢1 𝑣1
𝑥1 𝑥2 𝑥3
𝑢2 𝑣2
𝑦1 𝑦2 𝑦3 𝑢3 𝑣3
𝑷 𝑸 𝑹
DIRECTED It is a graph where all the edges
are directed from one vertex to
GRAPH another.
It is also called a digraph.
𝑫
TREE GRAPH It is an undirected graph in which any
two vertices are connected by exactly
one path.
EQUIVALENT
GRAPHSTwo or more graphs are equivalent if the
edges form the same connections of
vertices.
𝑷 𝑸 𝑹
EQUIVALENT
GRAPHS
Are the graphs below
equivalent?
EQUIVALENT
GRAPHS
Are the graphs below
equivalent?
PATH A path in a graph is a sequence of
edges which joins a sequence of
distinct vertices.
𝑢1 − 𝑢5 − 𝑢2 − 𝑢 3 𝑣 5 −𝑣 4 − 𝑣 3 − 𝑣 1 − 𝑣 2
CIRCUI A circuit is a closed path/cycle where a
T path ends at the same vertex at which it
started.
𝒖𝟏 −𝑢 5 −𝑢 2 − 𝑢3 −𝑢4 − 𝒖𝟏
𝒗 𝟏 − 𝑣 2 − 𝑣 3 − 𝑣 4 −𝑣 5 − 𝒗 𝟏
recall… The Konigsberg Problem
Historical background
Leonard Euler (1707-1783) – American mathematician
and logician introduced this formal definition of relation
EULER PATH EULER
It is a path where each ItisCIRCUIT
a circuit/cycle
where
edge in a graph is each edge in a graph is
traversed once and traversed once and starts
starts and ends at a and ends at the same
different vertex. vertex.
𝟏 −2 −3 − 4 −5 −1 −𝟒 𝟏 − 2 − 3 − 4 − 5 − 𝟏
Find an Euler circuit in the figure below:
(Page 232, Figure 6.5)
A-B-C-E-H-G-F-D-G-E-B-D-A
DEGREE It refers to the number of
OF A VERTEX edges that is incident at a
𝑨 vertex.
This means that the degree of a
vertex indicates the number edges
connected to that vertex.
𝑑𝑒𝑔 ( 𝐴 ) =2
𝑬 𝑩
𝑑𝑒𝑔 ( 𝐵 )=4
𝑑𝑒𝑔 ( 𝐶 )=3
𝑑𝑒𝑔 ( 𝐷 )=3
𝑫 𝑪 𝑑𝑒𝑔 ( 𝐸 )=4
EULERIAN GRAPH
THEOREM
Eulerian Graph Theorem
A connected graph is Eulerian if and only if every
vertex of the graph is of even degree.
Furthermore, the graph is Eulerian if it has an
Euler circuit.
Which of the following graphs is Eulerian? (Page 233, Example
3)
APPLICATION OF EULERIAN GRAPH THEOREM
(Page 234, Example
5)
Is it possible to
plan a journey
that traverse the
tracks and
returns to the
starting point
without traveling
through any
portion of a
track more than
once?
EULER PATH
THEOREM
Euler Path Theorem
A connected graph contains an Euler path if and
only if the graph has two vertices of odd degree
with all other vertices of even degree.
(Page
236,
Example
APPLICATION OF EULER PATH THEOREM
𝑩 𝑪 𝑫
𝑬
𝑨 𝑭
(Solution, Page
237, Example 7)
End of Discussion…