2.3 Walks, Trails and Paths

Definition 2.29.

(Walk, Trail , Path and Cycle) An ordered set of vertices P=v0vk is said to be a walk from v0 to vk if vivi+1. A walk P=v0vk is said to be a trail from v0 to vk if (vi,vi+1) are distinct for all i i.e., no repeated edges. A trail P=v0vk is said to be a path from v0 to vk if vi’s are distinct i.e., no repeated vertices. A walk is closed if vk=v0. A walk or trail is said to be closed if vk=v0 and else open. A closed trail is also called as a circuit. A circuit C=v0vk1v0 with no repetition of intermediate vertices is called a cycle i.e., v0,,vk1 are distinct. In other words, v0vk1 is a path and vk1v0.

Path as defined above is also referred to as simple path or self-avoiding walk.

Exercise 2.30.

For vw, show that there exists a walk from v to w iff there exists a trail from v to w iff there exists a path from v to w.

The question can be re-framed as: For vw, show that the following are equivalent:

  1. 1.

    there exists a walk from v to w

  2. 2.

    there exists a trail from v to w

  3. 3.

    path from v to w.

By definition, a path is a trail and a trail is a walk. Hence (3)(2)(1) is clear. To prove (1)(3) we see the following claim:
Claim : For every walk from a vertex u to another distinct vertex v, we can find a path from u to v.
Proof: We use induction on the length of the walk.
Base case:|𝒲|=1. It is trivially true that such a walk is a path.
Inductive hypothesis: Assume it is true that for every walk from u to v of length less than w we can find a path from u to v.
Inductive case: Suppose |𝒲|=w. If all the vertices in 𝒲 are distinct, we are done. If not, there is a repeated vertex, say x. Now we can decompose 𝒲=𝒲1𝒲2𝒲3 where 𝒲1 is the segment of 𝒲 from v0 to the first appearance of x, 𝒲2 is the segment of 𝒲 from the first appearance of x to the last appearance of x, and 𝒲3 is the segment of 𝒲 from the last appearance of x to vk. Thus 𝒲:=𝒲1𝒲3 is a walk from u to v of length strictly smaller than that of 𝒲 and by our hypothesis, there is a path from u to v.

For vw, we say that v is connected to w (denoted by vw) if there exists a path from v to w. We shall always assume that vv. Show that induces an equivalence relation. Define the component of v as Cv:={w:vw}. If vw, then Cv=Cw. We shall also abuse notation and denote the induced graph on Cv by Cv as well.

A graph is said to be connected if there exists a path from v to w for all vw i.e., vw for all vw. A subgraph is said to be connected if it is connected as a graph.

Exercise(A) 2.31.

Show that partitions V into equivalence classes and the equivalence class of v is Cv. Show that Cv is the maximal connected subgraph containing v.

The equivalence classes induced by are called as (connected) components and the number of (connected) components are denoted by β0(G).

Lemma 2.32.

If G has n vertices and m edges then β0(G)nm.

Proof.

We prove using induction on m. Start with a graph on n vertices and no edges. It has n components. Add edges one by one. Addition of an edge decreases β0(G) by at most 1 and hence proved. ∎

Exercise 2.33.

Show that β0(G)=1 iff for all vwG, vw.

We call the graph to be connected if β0(G)=1.

Exercise(A) 2.34.

Show that δ(G),Δ(G),d(G),β0(G) are all graph invariants.

Lemma 2.35.

Let G be a simple graph with at least two vertices. Show that G must contain at least two vertices with the same degree.

Proof.

This is just a straightforward application of Pigeon-hole Principle. Define Bi={vV:dv=i} for i=0,1,,n1. Then, since i|Bi|=n, either there is a i such that |Bi|2 and we are done, or |Bi|=1 for all i. But then since |Bn1|=1, we have a vV such that vw for any wV. This contradicts the existence of a degree-zero vertex (from B0), thus there is a i from 0 to n1 such that |Bi|>1. ∎