Irregular Tree-Structured Bayesian Networks