How do I check if a directed graph is acyclic? January 24, 2023 by Tarik I would try to sort the graph topologically, and if you can’t, then it has cycles.