Updated Shortest Cycle function

Worked out some of the kinks in the parsing of the shortest
cycle through a given edge function.