SMS: Cycles in graphs