Module 6 Graph Theory
Module 6 Graph Theory
Graph
Theory
MS. LOQUE
At the end of the module, you must be able to:
Two or more edges that join the same pair of distinct vertices are called parallel edges.
An edge represented by an unordered pair in which the two elements are not distinct is known as a loop.
Example of Graph
Consider the graph, determine the ff:
𝑉 𝐺 =
𝐸 𝐺 =
Order: 𝐺 =
Size: 𝐺 =
Parallel edges:
Loop:
Types of Graph
1. Multigraph
2. Pseudograph
3. Simple Graph
4. Complete graph
5. Digraph
What is Multigraph?
Multigraph is a graph with no loops.
What is pseudograph?
Pseudograph is a graph with at least one loop.
What is a simple graph?
Simple graph is a graph with no parallel edges and no loops.
What is a complete
graph?
The complete graph 𝑲𝒏 is a graph with 𝑛
vertices in which there is exactly one edge
joining every pair of vertices.
𝑎𝑟𝑐𝑠 𝐷𝐺 =
Adjacent and Incident
If 𝑒 = {𝑢, 𝑣} ∈ 𝐸(𝐺), vertices 𝑢 and 𝑣 are said to
be adjacent(to each other) and incident to 𝑒.
deg 𝑎 =
deg 𝑏 =
deg 𝑐 =
deg 𝑑 =
deg 𝑒 =
deg(𝑓) =
deg 𝑔 =
In-degree & out-degree of vertex 𝑣
In a graph with directed edges (arcs):
➢the in-degree of vertex 𝑣, denoted by 𝑑𝑒𝑔− (𝑣), is the number of edges with 𝑣 as their terminal
vertex
➢The out-degree of vertex 𝑣, denoted by 𝑑𝑒𝑔+ (𝑣), is the number of edges with 𝑣 as their initial
vertex.
Example:
Consider the graph and determine the
following.
𝑑𝑒𝑔− 𝑎 = 𝑑𝑒𝑔+ 𝑎 =
𝑑𝑒𝑔− 𝑏 = 𝑑𝑒𝑔+ 𝑏 =
𝑑𝑒𝑔− 𝑐 = 𝑑𝑒𝑔+ 𝑐 =
𝑑𝑒𝑔− 𝑑 = 𝑑𝑒𝑔+ 𝑑 =
𝑑𝑒𝑔− 𝑒 = 𝑑𝑒𝑔+ 𝑒 =
Pendant and Isolated Vertex
A pendant vertex is a vertex whose degree is 1.
Pendant vertex:
Isolated Vertex:
Theorem
The graph 𝐺 = (𝑉, 𝐸), where 𝑉 = {𝑣1 , 𝑣2 , 𝑣3 , … , 𝑣𝑛 } and
𝐸 = {𝑒1 , 𝑒2 , 𝑒3 , … , 𝑒𝑛 }, satisfies σ𝑛𝑖=1 𝑑 𝑣𝑖 = 2𝑚
Solution:
6 10 = 2𝑚 This is known as the Handshaking Theorem: the sum
60 = 2𝑚 of the degrees of all vertices is twice the number of
𝑚 = 30 edges.
Example:
3
6
7
1 2 4
5 8
3+4+4+4+1= 2 8
16 = 16
Theorem
Theorem 2: Let 𝐺 be a simple graph with at least 2 vertices. Then 𝐺 has at least 2 vertices of the
same degree.
𝐺 ′ = (𝑉 ′ , 𝐸 ′ ) with 𝑉 ′ ⊆ 𝑉 and 𝐸 ′ ⊆ 𝐸.
𝑆 is a subgraph of
𝐺.
Bipartite Graph
If the vertex set of graph G can be split into two disjoint sets A and B so that
each edge of G joins a vertex of A and a vertex of B.
𝑎 → 𝑏 → 𝑐 → 𝑔 → 𝑎 is a closed walk.
Trail
A walk with no repeated edges (edges are distinct).
a → b → c → d → h → g→f→ a is a cycle or
7–cycle since it has a length of 7.
Properties of Walk, Trail, Path, Circuit
and Cycle
Items Vertices Edges
Walks Repetition is allowed Repetition is allowed
Trails Repetition is allowed Repetition is not allowed
Paths Repetition is not allowed except Repetition is not allowed
possibly in the initial and terminal
vertex
Circuits Repetition is allowed Repetition is not allowed
Cycles Repetition is not allowed except in Repetition is not allowed
the initial and terminal vertex
Trees
A tree is a mathematical structure that is a special kind of graph which has the following properties:
(1) it is undirected;
(2) it is connected (each of the vertices is connected with a link to at least one other vertex); and
(3) acyclic (there is only one route from any vertex to any other vertex or has no cycle).
Bridge and Forest
•Each edge connecting each pair of vertices is a
bridge.
c(G)
Identify:
End of Introduction to Graph
Theory
Trees
Presentation!
Prepared by:
Ms. Jacquiline Loque Walk, Trail, Circuit, Path
and Cycle