Graphs
Graphs
THE MATHEMATICS OF
GRAPH
APPLICATION OF GRAPH
THEORY IN REAL LIFE
GPS or Google Maps GPS or Google Maps are to find a
shortest route from one destination to another. The
destinations are Vertices and their connections are Edges
consisting distance.
Traffic lights The functioning of traffic lights i.e. turning
Green/Red and timing between them. Here vertex coloring
technique is utilized to solve conflicts of time and space by
identifying the chromatic number for the number of cycles
needed.
Social Networks We connect with friends via social media or
a video gets viral, here user is a Vertex and other connected
users create an edge therefore videos get viral when reached
to certain connections.
To clear road blockage When roads of a city are blocked due
to ice. Planning is needed to put salt on the roads. Then Euler
paths or circuits are used to traverse the streets in the most
efficient way.
Leonhard Euler- A swiss mathematician,
solve an eighteenth century problem
involving the seven bridges of Konisbergin
Old Prussia.
GRAPH
A graph is a collection of points called vertices or nodes and line
segments or curves called edges that connect the vertices.
DEFENITIONS
Loop- Is an edge connecting a vertex to itself .
Multiple Edges- If two vertices are connected by more than one edge.
If a Path begins and ends with the same vertex , it is a closed path or
a circuit or a cycle.
Two vertices are adjacent if there is an edge joining them.
If very pair of vertices of a graph are adjacent, the graph is complete.
A complete graph with n vertices is denoted by Kn.
The degree of vertex is the number of edges attached to it.
EXAMPLES
OF GRAPH
NULL OR DISCONNECTED GRAPH
The graph below is a null or disconnected graph since it has three
vertices but no edges. The degree of each vertex is 0.
GRAPH WITH LOOP
The loop connects vertex A to itself. The degree of a loop is 2.
GRAPH WITH MULTIPLE EDGES
Both graphs G1 and G2 below are connected and have multiple edges
connecting vertices A and B. The degrees of vertices A and B in G1 are
both equal to 3 while that of G2 are both equal to 4.
COMPLETE GRAPH
A complete graph is a connected graph in which every possible edge is
drawn between vertices. It should not contain multiple edges.
EULER PATHS
AND
CIRCUITS
EULER CIRCUITS
An Euler circuit is a close path that uses every edge, but never uses the
same edge twice. The path may cross through vertices more than once.
EULERIAN GRAPH THEOREM
A connected graph is eulerian if and only if every vertex of the graph is
of even degree.
Weighted Graphs
A weighted graph is a graph in which each edge is associated with a value, called
weight.
Solution:
There Are ten verticles in the graph, so
n=10 and n/2=5. Now, vertex Manila has
9 edges, Tokyo 5, Seoul 5, Taipei 6,
Hongkong 7, Macau 9, Bangkok 6, Ho Chi
Minh 5, Kuala lumpur 5, and Singapore 5.
Using Dirac’s Theorem, if each vertex has
a degree of at last n/2=5, then the graph
is Hamiltonian. This means that the
graph contains a circuit that visits each
vertex and returns to its starting point
without visiting a vertex more than once.
AN APPLICATION OF
HAMILTON CIRCUIT
The table below list down the distances
(miles) between the cities having direct
routes as well as the corresponding
distances between them.
Manila Cebu Cagayan de Davao Palawan Ozamis
Oro
FOUR-COLOUR THEOREM
THE CHROMATIC NUMBER OF A PLANAR GRAPH IS AT
MOST 4
TREES
A TREE IS A MATHEMATICAL STRUCTUREWHICH IS A
TYPE OF GRAPH WHICH HAS THE FOLLOWING
PROPERTIES:
(1) UNDIRECTED
HEIGHT
THE HEIGHT OF A ROOTED TREE IS THE NUMBER ODGES
ALONG THE LONGEST PATH FROM THE ROOT VERTEX TO
THE FARTHEST CHILD VERTEX
NYEM!