Cyclic automorphisms of a countable graph and random sum-free sets