Added some methods to the Graph and Path class
Added cycle detection function: get_cycles