Pergunta de entrevista da empresa MathWorks

How would you detect cycles in a directed acyclic graph ?

Resposta da entrevista

Sigiloso

21 de jan. de 2017

Used DFS and check if next node is on the current visited path.