Professional Documents
Culture Documents
Week 14 Reading Materials
Week 14 Reading Materials
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
Learning Outcomes:
1. Understanding the basic terms and concepts of graph
theory.
2. Recognize that graph theory has many varied applications
in our world.
3. Construct the graph of the given information involving
connectedness.
What is a Graph?
A graph is a pictorial representation of a set of objects
where some pairs of objects are connected by links. The
interconnected objects are represented by points termed as
1
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
vertices, and the links that connect the vertices are called
edges.
A Graph is a collection of vertices (nodes) and edges
(arcs), which connects vertices (nodes) in the graph. Generally,
a graph G is represented as G = (V,E), where V is a set of
vertices, and E is a set of edges.
Edge
A B
Vertices E
C D
2
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
Equivalent Graphs
The graphs are called equivalent graph if the edges form the
same connections of vertices in each graph.
B A
A D A
E E
D B B C
D C C
Euler’s Graph
3
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
D B
F
C
G E
a. b.
Solutions:
a. The vertices, C and D are of odd degree. By the Eulerian
Graph Theorem, the graph does not have any Euler circuit.
4
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
Euler Paths
Pen-Tracing Puzzles:
Consider the shown diagram. Can you trace this
diagram without lifting your pencil from the paper?
Note that you need to trace each segment exactly
once.
By trial and error, you may discover a tracing
that works. Even though there are several possible
tracings, you may notice that only certain starting
points seem to allow a complete tracing. How do we
know which point to start from? How do we know that a solution
exists?
Solution: In the map, there are only two vertices of odd degree,
the vertices D and H. the rest of the vertices are of
even degree. Thus, an Euler path exists, and so it is
possible for the postman to design a route that travels
each street once. The postman must start from either one
of the vertices with odd degree and end in the other
vertex of odd degree. By trial and error, one of the
Euler paths is D-A-B-C-F-B-E-I-H-G-D-E-H.
5
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882
A path that contains every vertex of the graph but does not
return to the starting point is called Hamiltonian path.
6
DAVAO CENTRAL COLLEGE,
INC.
Juan dela Cruz Street, Toril, Davao City
Accredited by ACSCU-ACI
Landline No. (082) 291 1882