Traversal in Graph

To traverse all of the vertex in Graph, there are 2 most common used searching method: Breadth First Search (BFS) and Depth First Search (DFS).

BFS:

DFS:

Example:

BFS & DFS result: ?

results matching ""

    No results matching ""