Added a visualization of the data to help debug the cycle detector.