Pregunta de entrevista de Hadrian

Traverse a directed acyclic graph in Python