Harnack's inequality and Green functions on locally finite graphs