run model selection from python given a single graph and probability distribution