LinkPrediction code for the ScaleGraph library