Added first attempt to efficiently search for graph cycles