codes for paper: Bayesian one-mode projection for dynamic bipartite graphs