Clone of libDAI at http://people.kyb.tuebingen.mpg.de/jorism/libDAI/