Linearity Properties of Bayes Nets with Binary Variables