Attempt to develop generic approach for inference on graphical models, using Loopy Belief Propagation algorithm.