q~= inf: rewrite choose d according to the power-law distribution, and rewrite long-range contacts