How To Find The Gradient Of The Graph