Riparian bayesian network code