Feb. 21, 2014, 5:36 p.m. by Rosalind Team
Topics: Graphs
Given: A positive integer
Return: For each graph, output the length of a shortest cycle going through the first specified edge if there is a cycle and "-1" otherwise.
2 4 5 2 4 2 3 2 1 1 4 3 2 1 10 1 3 4 4 5 3 2 1 2 4 2 4 1 3 2 1 10 1 3 4
-1 10