Frequency sequences in graphs