Learn DSA
Home
Learning Path
Data Structures
Algorithms
Home
Learning Path
Data Structures
Algorithms
Loading...
Back to Graphs Overview
Graph Algorithm Simulation
Interact with graph algorithms and see how BFS, DFS, and Dijkstra's algorithm work step by step.
Algorithm
BFS
DFS
Dijkstra
Graph Controls
Directed
W
Weighted
Mode
View
Add Node
Add Edge
Remove
Graph Visualization
4
2
1
5
8
10
2
A
B
C
D
E
Legend
Start Node
Visited
Instructions
• Select an algorithm and click "Start" to see the step-by-step execution
• Use the mode selector to add nodes, edges, or remove elements
• Toggle between directed/undirected and weighted/unweighted graphs
• BFS finds shortest path in unweighted graphs
• DFS explores deeply before backtracking
• Dijkstra finds shortest path in weighted graphs
Theory
Next: Hash Tables