Continuous Time Bayesian Network Approximate Inference And Social Network Applications