Relative Minimum And Maximum On A Graph