Higher-Order Inference for Multi-class Log-Supermodular Models
libdai : a free and open source c + + library for discrete approximate inference in graphical models .