Discrete optimization, Optimization graph theory