W Elcome To D Iscrete M Athematics Presentation Topics:Graphtheory
W Elcome To D Iscrete M Athematics Presentation Topics:Graphtheory
PRESENTATION
Topics:GraphTheory
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), (x,v), (x,u),
(v,w), (s,v), (s,u), (s,w), (s,y),
(w,y), (u,y), (u,z),(y,z)}
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”.
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
Terminology – Undirected graphs
u and v are adjacent if {u, v} is an edge, e is called incident with u and
v. u and v are called endpoints of {u, v}
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
Bipartite graphs
A bipartite graph G is a
graph such that
V(G) = V(G1) V(G2)
|V(G1)| = m, |V(G2)| = n
V(G1) V(G2) =
No edges existbetween
any two vertices in the
same subset V(Gk), k =
1,2
Complete bipartite graph Km,n
A path of length n is a
sequence of n + 1
vertices and n
consecutive edges
A cycle is a path that
begins and ends at
the same vertex
Euler cycles
An Euler cycle in a graph G is a
simple cycle that passes through
every edge of G only once.
The Konigsberg bridge problem:
Starting and ending at the same point, is it
possible to cross all seven bridges just
once and return to the starting point?
This problem can be represented
by a graph
Edges represent bridges and
each vertex represents a region.
Degree of a vertex
The degree of a vertex
v, denoted by (v), is
the number of edges
incident on v
Example:
(a) = 4, (b) = 3,
(c) = 4, (d) = 6,
(e) = 4, (f) = 4,
(g) = 3.
Sum of the degrees of a graph
Theorem : If G is a graph with m edges and n
vertices v1, v2,…, vn, then
n
(vi) = 2m
i =1
14
If G is planar graph,
v = number of vertices
e = number of edges
f = number of faces,
including the exterior face
Then: v – e + f = 2