Correction of possible loop when generate a graph
Merge branch 'master' of https://github.com/kaldoran/Advanced_algorithms