Special Topic 1. Introduction To Graph Theory Copy - 1
Special Topic 1. Introduction To Graph Theory Copy - 1
Theory
The HISTORY of Graph Theory
The basic idea of graphs were first introduced in the 18th century
by the Swiss mathematician Leonhard Euler, one of the most
eminent mathematicians of the 18th century (and of all time,
really). His work on the famous “Seven Bridges of Königsberg
problem”, are commonly quoted as origin of graph theory.
Konigsberg is an ancient city of Prussia, now Kalingrad, Russia. The city was set on both sides of the Pregel River, which also had two
islands connected to each other with seven bridges. Two of the seven original bridges were destroyed during WWII, but the story which
follows has captured the imagination of mathematicians through present day. In the Middle Ages, Konigsberg was a very important city and
trading center with its location strategically positioned on the river. The seven bridges were called Blacksmith’s bridge, Connecting Bridge,
Green Bridge, Merchant’s Bridge, Wooden Bridge, High Bridge, and Honey Bridge. As the story goes, the citizens of Konigsberg used to
spend Sunday afternoons walking around their beautiful city. While walking, the people of the city decided to create a game for themselves,
their goal being to devise a way in which they could walk around the city, crossing each of the seven bridges only once. No one could figure
out a route that would allow them to cross each of the bridges only once.
Graph Theory is ultimately the study of relationships. Given a set
of nodes & connections, which can abstract anything from city
layouts to computer data, graph theory provides a helpful tool to
quantify & simplify the many moving parts of dynamic
systems. Studying graphs through a framework provides answers to
many arrangement, networking, optimization, matching and
operational problems.
INTRODUCTION
• What is a graph G?
It is a pair G = (V, E), where
V = V(G) = set of vertices
E = E(G) = set of edges
• Example:
V = {s, u, v, w, x, y, z}
E = {(x,s), (x,v)1, (x,v)2, (x,u), (v,w),
(s,v), (s,u), (s,w), (s,y), (w,y), (u,y), (u,z),(y,z)}
Directed graphs (digraphs)
G is a directed graph or digraph if each edge has been
associated with an ordered pair of vertices, i.e. each edge
has a direction
UNDIRECTED GRAPH
• Edges have no direction.
• If an edge connects vertices 1 and 2, either convention can be used:
No duplication: only one of (1, 2) or (2, 1) is allowed in E.
Edges
• An edge may be labeled by a pair of vertices, for
instance e = (v, w).
• e is said to be incident on v and w.
• Isolated vertex = a vertex without incident edges.
Special edges
• Parallel edges
– Two or more edges
joining a pair of vertices
in the example, a and b
are joined by two parallel
edges
• Loops
– An edge that starts
and ends at the same vertex
In the example, vertex d has a loop
Special graphs
• Simple graph
– A graph without loops
or parallel edges.
• Weighted graph
– A graph where each
edge is assigned a
numerical label
or “weight”.
Complete graph K n
• Let n > 3
• The complete graph Kn
is the graph with n vertices
and every pair of vertices
is joined by an edge.
• The figure represents K5
• The degree of complete graph is n-1
FINITE AND INFINITE GRAPH
• A graph G = (V, E ) is called a finite graph if the vertex Set V is
finite set.
• Adjacency matrix
Rows and columns are labeled with ordered
vertices
write a 1 if there is an edge between the row
vertex and the column vertex
and 0 if no edge exists between them
EXAMPLE
Incidence matrix
• Incidence matrix
– Label rows with vertices
– Label columns with edges
– 1 if an edge is incident to a vertex, 0 otherwise
INCIDENCE GRAPH
Isomorphism and adjacency
matrices
Two graphs are isomorphic if and only if
after reordering the vertices their adjacency matrices are
the same
THE END
THANKS