Minimum And Maximum On A Graph