ABDMS-19: Detecting cycles in graphs