Learning Cycles and Playlists