The package provides functions to a) fit a mixed graphical model to data and b) to sample from a mixed graphical model including pairwise interactions.
The stable version can be installed via CRAN:
install.packages("mgm")
The developmental version can be installed using the devtools-package:
library(devtools)
install_github("jmbh/mgm")