The ability to subtract the thickness of edging from the panel dimensions.
If you are determined to use MaxCut on your iMac, MacBook Pro, or Mac Studio, here are the most reliable methods. maxcut for mac
def local_search(G, part): improved=True while improved: improved=False for v in G: delta = 0 for u in G.neighbors(v): w = G[v][u].get('weight',1) delta += w if part[u]==part[v] else -w if delta>0: part[v] = 1-part[v] improved=True return part The ability to subtract the thickness of edging