Overview
Important
In a graph, a path is a sequence of vertices such that each consecutive pair is connected by an edge. The path has length (the number of edges used). Paths can be simple (no repeated vertices) or may allow repeated vertices and edges, depending on the context.
Important properties
-
A path connects two vertices by a sequence of edges.
-
A simple path does not repeat any vertex.
-
The length of a path is the number of edges it uses.
-
If a path starts and ends at the same vertex, it is called a cycle (if it has at least one edge).