implement no duplicate cycle proviso
Merge pull request #6 from ryysd/duplicate_cycle_proviso

implement no duplicate cycle proviso