Chance-Constrained Programs for Link Prediction