Output of DFS After pressing button "Clear": Dump start AdjList[0]: 1 2 AdjList[1]: 3 AdjList[2]: 3 4 AdjList[3]: AdjList[4]: 0 1 3 AdjList[5]: 7 AdjList[6]: 5 8 AdjList[7]: 6 AdjList[8]: 9 AdjList[9]: 6 Dump end After pressing button "DFS": 0 1 3 Back out of 3 Back out of 1 2 4 Back out of 4 Back out of 2 Back out of 0 After pressing button "Acyclic?": 0 1 3 Back out of 3 Back out of 1 2 4 A cycle: 0 2 4 0 Back out of 4 Back out of 2 Back out of 0 5 7 6 A cycle: 5 7 6 5 8 9 A cycle: 6 8 9 6 Back out of 9 Back out of 8 Back out of 6 Back out of 7 Back out of 5