How To Determine Distance On A Graph