graphcut: finished