bug fixed in graph directed cycles