A Recursive Bayesian Approach for the Link Prediction Problem