pgm_inference This is a project in which exact inference for tree-structured graph and approximate inference for general graph is implemented.