adding a second version of creating cycles
Adding a method helping to improve the graph once it has been created