Spherical functions on symmetric graphs