directed-graph: fix bug in loop detection

4 jobs for fix/directed_graph_loop_detection_bug in 1 minute (queued for 3 seconds)