dgRaph Discrete factor graphs in R For installation instruction, tutorials, etc. check our github project page here