Graph tools and Bayesian calculation.