Application of Message Passing and Sinkhorn Balancing Algorithms for Probabilistic Graphical Models