Automatically cycle through cacti graphs