Given a **Directed Acyclic Graph (DAG)** with **n** vertices and a list of directed edges, return a valid **topological ordering** of the vertices.
A topological order ensures that for every directed edge u → v, u appears before v in the ordering.
Interactive graph explorer available!
Switch to the Visualize tab to build a custom graph and animate BFS traversal to test your intuition.