A path is a sequence of vertices and edges that starts from a starting vertex and ends in another vertex that we are trying to reach. In the following diagram, the path from A to F is represented by (A, B), (B, C), (C, E), and (E, F):
A path is a sequence of vertices and edges that starts from a starting vertex and ends in another vertex that we are trying to reach. In the following diagram, the path from A to F is represented by (A, B), (B, C), (C, E), and (E, F):