commit- seems that cycle detection is working though the application
acts funky when i add a cycle into the graph.