Sparsity of Graphs that Allow Two Distinct Eigenvalues