1.4 Paths and Connected Graphs

A path is a sequence of edges, e.g.  v 1 , v 2 , v 2 , v 3 , , v n - 1 , v n (v_{1},v_{2}),(v_{2},v_{3}),\cdots,(v_{{n-1}},v_{n}) . This path connects vertices v 1 v_{1} and v n v_{n} . The path may also be represented by the vertex sequence v 1 , v 2 , v 3 , , v n - 1 , v n v_{1},v_{2},v_{3},\cdots,v_{{n-1}},v_{n} . The path begins at vertex v 1 v_{1} passes through vertices v 2 , v 3 , , v n - 1 v_{2},v_{3},\cdots,v_{{n-1}} and ends at vertex v n v_{n} .

The number of edges that comprise a path is its length. A path is simple if all of the vertices on a path are distinct (with the possible exception of the first and last vertices).

If some path connects each pair of vertices in G G , then G G is a connected graph.

Connected digraphs are classified as either weakly connected or strongly connected. A strongly connected digraph has a directed path that connects all the vertices in the graph. All the vertices of a strongly connected digraph must have an in-degree of at least one.

A weakly connected digraph has has an undirected path that connects all the vertices in the graph. All the vertices of a weakly connected digraph must have either an in-degree or out-degree of at least one.