Skip to main content
2 of 2
added 148 characters in body
Dustin G. Mixon
  • 7.6k
  • 2
  • 31
  • 56

Unless I misread your question, your problem is identical to maximum cut when $G'=G$, implying your problem is NP-hard.

(Actually, as David Benson-Putnins points out, I did misread the question. My answer requires the edge weights to be not necessarily positive.)

Dustin G. Mixon
  • 7.6k
  • 2
  • 31
  • 56