Applications Of Bayesian Latent Network Models To Causal Inference And Transaction Set Mining