fixed bug in RelaxpartitionedEdges.