Added graph problem to find min cut