(Walk, Trail , Path and Cycle) An ordered set of vertices is said to be a walk from to if . A walk is said to be a trail from to if are distinct for all i.e., no repeated edges. A trail is said to be a path from to if ’s are distinct i.e., no repeated vertices. A walk is closed if . A walk or trail is said to be closed if and else open. A closed trail is also called as a circuit. A circuit with no repetition of intermediate vertices is called a cycle i.e., are distinct. In other words, is a path and .
Path as defined above is also referred to as simple path or self-avoiding walk.
For , show that there exists a walk from to iff there exists a trail from to iff there exists a path from to .
The question can be re-framed as: For , show that the following are equivalent:
there exists a walk from to
there exists a trail from to
path from to .
By definition, a path is a trail and a trail is a walk. Hence is clear. To prove we see the following claim:
Claim : For every walk from a vertex to another distinct vertex , we can find a path from to .
Proof: We use induction on the length of the walk.
Base case:. It is trivially true that such a walk is a path.
Inductive hypothesis: Assume it is true that for every walk from to of length less than we can find a path from to .
Inductive case: Suppose . If all the vertices in are distinct, we are done. If not, there is a repeated vertex, say . Now we can decompose where is the segment of from to the first appearance of , is the segment of from the first appearance of to the last appearance of , and is the segment of from the last appearance of to . Thus is a walk from to of length strictly smaller than that of and by our hypothesis, there is a path from to .
For , we say that is connected to (denoted by ) if there exists a path from to . We shall always assume that . Show that induces an equivalence relation. Define the component of as . If , then We shall also abuse notation and denote the induced graph on by as well.
A graph is said to be connected if there exists a path from to for all i.e., for all . A subgraph is said to be connected if it is connected as a graph.
Show that partitions into equivalence classes and the equivalence class of is . Show that is the maximal connected subgraph containing .
The equivalence classes induced by are called as (connected) components and the number of (connected) components are denoted by .
If has vertices and edges then .
We prove using induction on . Start with a graph on vertices and no edges. It has components. Add edges one by one. Addition of an edge decreases by at most and hence proved. ∎
Show that iff for all , .
We call the graph to be connected if .
Show that are all graph invariants.
Let be a simple graph with at least two vertices. Show that must contain at least two vertices with the same degree.
This is just a straightforward application of Pigeon-hole Principle. Define for . Then, since , either there is a such that and we are done, or for all . But then since , we have a such that for any . This contradicts the existence of a degree-zero vertex (from ), thus there is a from to such that . ∎