I have a networkx graph and want to partition using metis based on constraints on the edges.
As can be seen the edge weights is represented as a dictionary with happ