Graph Theory
Graph Theory
THEORY
Group 6 - MATM
BSN 1-Y1-35
GRAPH
A diagram that contains informations
and depicts connection and relationship
between the various parts of the
diagram.
G = (V, E)
Essential Features of a Graph
The objects - refers to the nodes or vertices
Edges - connecting line
Paths - is a sequence of edgess
Vertex sequence of a path
- a path in written terms of edges
- determines a sequence of
vertices
PATH
Path Length
1. ade 3
2. adc 3
3. bce 3
4. abced 5
5. adecb 5
Vertex sequence of a path
KINDS OF
GRAPH
Cyclic Graph
- a graph
contains at least
one graph cycle.
cyclic graph identification:
1. the path is closed.
- it contains all
possible edges.
- a graph in which
every pair of vertices
is joined by only one
edges.
Simple Graph
- there is just one
edge linking two
vertices, depicting
one-to-one
interactions between
two elements.
Acyclic Graph
- a graph which
does not contain
any cycle.
Weighted Graph
- a graph whose
edges have been
labeled with some
weights or numbers
Subgraph
- The vertices
and edges of a
graph that are
subsets of
another graph .
FLEURY'S
ALGORITHM
utilised to locate an Euler circuit
within a graph,.
Two special circuits
- A closed path in a graph which uses each of the edges exactly
once,
Euler Theorem:
- The graph has an Euler Circuit if the graph is connected and the
degree of the vertices must be even.
Euler Path
- a path that uses each edge of a graph exactly once.
A.
.
EXAMPLE
B. C.
DIRAC’S
THEOREM
consider a connected graph with at least 3
verticles and no multiple edges.
No. of vertices: 6
Every vertex has a degree
of at least n/2= 3
Therefore, by Dirac’s Theorem,
the graph is Hamiltonian.
GREEDY
ALGORITHM
Also known as shortest path
algorithm
STEPS:
1. Choose a vertex to start at, then travel along the
connected edge that has the smallest weight.
(if two or more vertices have the same weight, pick any one)
INFINITE REGION
If the area of the region is infinite, that region is
called a infinite region. A planar graph has only one
infinite region.
PROPERTIES OF PLANAR REGION
Given-
Number of vertices (v) = 65
Number of edges (e) = 30
SOLUTION!
https://math.libretexts.org/Bookshelves/Applied_Mathematics/Book%3A_College_Mathematics
_for_Everyday_Life_(Inigo_et_al)/06%3A_Graph_Theory/6.04%3A_Hamiltonian_Circuits
https://www.javatpoint.com/hamiltonian-circuit-problems
https://www.freecodecamp.org/news/greedy-algorithms/
https://youtu.be/ISWo-9i_faU?si=W4Q6Xp72cHw7lzbB
https://www.scribd.com/presentation/474731869/Edge-Picking-Algorithm
https://www.freecodecamp.org/news/greedy-algorithms/
SHORT QUIZ
Does a Hamiltonian path or circuit exist on the graph below?
SHORT QUIZ
Does a Hamiltonian path or circuit exist on the graph below?
G. H.
SHORT QUIZ
Does a Hamiltonian path or circuit exist on the graph below?
I. J. K.
SHORT QUIZ
Which of the
following is/ are
Euler Graphs?
SHORT QUIZ
Which of the
following is/ are
Euler Graphs?
SHORT QUIZ
PROBLEM 1:
PROBLEM 2: