fixed run_edmonds to work on probabilities