Divisors and the spectrum of infinite graphs