calculates posterior probability of swaps (+ neat graphviz output)