Script to generate the graphical model.