A Bayesian Network Based Pipeline Risk Management