set up link prediction, still a few bugs to work out