pgraph function

Posterior probabilities of the graphs