OpenGM: A C++ Library for Discrete Graphical Models
libdai : a free and open source c + + library for discrete approximate inference in graphical models .