repeat_pattern function

Create repeated patterns in Bayesian networks