Dependency Graph
Priya only reaches for Dependency Graph when bus routes has to stay correct in a city map.
For Dependency Graph, time vs memory is in play. Don’t blame it until you have traced bus routes.
Skip Dependency Graph and no visited set → infinite loop shows up in a city map.
Priya ships Dependency Graph in a city map. That is the use case worth saying.
Dependency Graph trap — no visited set → infinite loop. Priya loses marks for that every viva.
Dependency Graph is not a lonely heading. Priya ties it to bus routes.
Viva for Dependency Graph — what it is → BFS queue / DFS stack → the mistake (no visited set → infinite loop).
For Dependency Graph: definition + a city map + one failure.