constructWeights function

Construct weights for jewel minimization problem from prior information on vertices degrees.