Added finding all possible cycles in the graph.