Give 2 methods of traversing a graph.
- Breadth first
Describe the depth-first method of traversing a graph.
The depth-first traversal consists of moving down the nodes from the starting node, and backtracking to get to the next node.
Describe breadth-first traversal.
Breadth-first traversal method consists of exploring a vertex and its unvisited vertices, and then exploring each of these vertices are the vertices tied to each of them.