detect cycle in a directed graph python

Published --