The distribution of eigenvalues of graphs