Bug fix

Minor bug fix, for more information see:
http://stackoverflow.com/questions/25898100/enumerating-cycles-in-a-graph-using-tarjans-algorithm/25898516#25898516