OpenGM: A C++ Library for Discrete Graphical Models
Probabilistic reasoning in intelligent systems: Networks of plausible inference