Circulant graphs and spherical codes