modelstring function

Build a model string from a Bayesian network and vice versa