Skip to content
Graph Algorithms

DFS — Depth First Search

Stack + depth first — O(V+E)

Test & Demo

Enter edges as from,to,weight