7    VisuAlgo    Graph Traversal
AdminHome

Save to database

Exploration ModeHome

Language

Home

Draw Graph

Random Graph

Sample Graphs

Directed <-> Undirected

BFS

DFS

Cut Vertex & Bridge

SCC Algorithms

Bipartite Graph check

Topo Sort

Two-SAT checker

Rate This Graph: 

CP3 4.1

CP3 4.3

CP3 4.4

CP3 4.9

CP3 4.17

CP3 4.18

CP3 4.19

Go

GO

GO

Tarjan

Kosaraju

DFS

BFS

DFS

BFS

Number of clauses

Number of variables

GO

About Team Terms of use
slow
fast
go to beginning previous frame pause play next frame go to end

Status

No Warning

No Error

012 • Click on empty space to add vertex • Drag from vertex to vertex to add edge • Select + Delete to delete vertex/edge • Select Edge + Enter to change edge\'s weight • Press Ctrl to Drag vertex around

Cancel

Clear

Done

Submit drawn graph to database for random graph and online quiz purposes
Copy JSON text to clipboard

In the Graph-Traversal problem, we mainly use DFS (Depth-First-Search) and BFS (Breadth-Frist-Search) to travel the graph.

We also mention about a lot of DFS and BFS variants such as cut vertex, bridge and SCC algorithms, ...

Next

Choose a sample graph and try running the different algorithms on it:

The basis O(n) DFS and BFS
The O(n) cut vertex and bridge algorithm
The scc algorithms
The bipartite graph checker
The topological sort algorithms
And the two-sat checker algorithm
...

Next

When the algorithm is running, the animation will be show here.

Next

The status bar explains the execution of the algorithm at each animation step.

Next

You can also follow the psuedocode highlights to trace the algorithm.

Next

Control the animation with the player controls! Keyboard shortcuts are:

Spacebar: play/pause/replay
Left/right arrows: step backward/step forward
-/+: decrease/increase speed
Next

Return to "Exploration Mode" to start exploring!