The Sweep example is in the IDE. The speed of movement is controlled by the delay().
If you want more detailed examples please explain in more detail exactly what you are trying to do and what servo you are using. In particular what exactly do you mean by "cycle" and "half cycle"?