Updated the graph input and implemeneted a way of getting the largest cycle (still testing).