Module 4 – Graph theory (Part –2)
Module 4 – Graph theory (Part –2)
(PART – 2)
Dr V Bhuvaneswari
Assistant Professor
PSG College of Arts & Science
Coimbatore
WALKS, PATHS AND CIRCUITS
Walk:
A walk is defined as a finite alternating sequence
of vertices and edges beginning and ending with
vertex. (Vertex and Edges can be repeated in a
walk).
In the Graph,
v1 → e1 → v2 → e2 → v3 → e3 → v4 is a walk
v1 → e7 → v4 → e6 → v6 → e5 → v5 → e4 → v4
→ e3 → v3 is another walk.
LENGTH OF THE WALK:
The total number of edges covered in a walk is
called as Length of the Walk.
In the Graph,
v1 → e1 → v2 → e2 → v3 → e3 → v4 is a walk of
length three.
v1 → e7 → v4 → e6 → v6 → e5 → v5 → e4 → v4
→ e3 → v3 is a walk of length five.
Open Walk
A walk is called as an Open walk if-
Length of the walk is greater than zero
And the vertices at which the walk starts and ends are
different.
Closed Walk
A walk is called as a Closed walk if-
Length of the walk is greater than zero
And the vertices at which the walk starts and ends are
same
Note
If length of the walk = 0, then it is called as a Trivial Walk.
Both vertices and edges can repeat in a walk whether it
is an open walk or a closed walk.
PATH:
A path is defined as an open walk in which-
Neither vertices (except possibly the starting and
ending vertices) are allowed to repeat.
Nor edges are allowed to repeat.
In the graph,
v1 → e1 → v2 → e2 → v3 → e3 → v4 is a Path.
But v1 → e7 → v4 → e6 → v6 → e5 → v5 → e4 →
v4 → e3 → v3 is not a path because vertex v4 is
repeated.
Simple Path
A path is simple if no edge is repeated if it does
not include the same edge twice.
Elementary Path
A path is said to be elementary if it does not
meet the same vertex twice.
Consider the graph shown in fig:
Give an example of the following:
A simple path fromV1 to V6.
v1 → e1 → v2 → e2 → v3 → e3 → v4 → e7 → v1 is a cycle.
But v1 → e7 → v4 → e6 → v6 → e5 → v5 → e4 → v4 → e3
→ v3 → e2 → v2 → e1 → v1 is not a cycle because vertex
v4 is repeated.
Trail:
A trail is defined as an open walk in which-
Vertices may repeat.
But edges are not allowed to repeat.
In the graph,
v1 → e7 → v4 → e6 → v6 → e5 → v5 → e4 → v4 →
e3 → v3 is a trail.
And v1 → e7 → v4 → e6 → v6 → e5→ v5 → e4 → v4
→ e3 → v3 → e2 → v2 → e1→ v1 is a closed trail.
Circuit:
A circuit is defined as a closed walk in which-
Vertices may repeat.
But edges are not allowed to repeat.
OR
A closed trail is called as a circuit.
a) E → C → D → E
b) A → C → D → E → B → A
c) B → D → E → B → C
d) A → B → C → D → B → A
USING THE GRAPH, CLASSIFY EACH SEQUENCE
AS A WALK, A PATH OR A CIRCUIT.
a) E → C → D → E
b) A → C → D → E → B → A
c) B → D → E → B → C
d) A → B → C → D → B → A
DECIDE WHICH OF THE FOLLOWING
SEQUENCES OF VERTICES DETERMINE WALKS