This below is an implementation of the Hastings - Metropolis algorithm.
A simple GUI interface allows the user to specify the number of steps to run the algorithm for. At each step, the current P matrix and the current calculated stationary distribution for this P matrix are shown to help observe the convergence.
Screen shots showing few snap shots of the P matrix as it converges