shortage and surplus on graph - Search