Pergunta de entrevista da empresa Nuro

Write a directed graph class with add/remove nodes and edges. Implement Topological sort with cycle detection.