DSAOps Lab
D
DSAOps LabGraph Lab

DSAOps Lab

Graph Lab

BFS, DFS, Dijkstra, A*, Prim, Kruskal, Union Find

Walkthrough

How Graph Algorithms Work

Step-by-step from graph representation to traversal

1

Graph Representation

A graph G = (V, E) consists of vertices (nodes) connected by edges. Graphs can be directed (one-way) or undirected (two-way), weighted or unweighted.

1
2
3
4
1 / 5

Algorithms

3D Graph View
Drag to rotate · Scroll to zoom

Controls

Algorithm Controls

History

0/0

Run an algorithm to see traversal history

Analysis

AlgorithmTime ComplexitySpace Complexity
BFSO(V + E)O(V)
DFSO(V + E)O(V)
DijkstraO((V+E) log V)O(V)
A*O(E)O(V)
PrimO(E log V)O(V)
KruskalO(E log V)O(V + E)
Union FindO(α(N))O(N)