The graphs with all but two eigenvalues equal to $$\pm 1$$±1