A package for discrete and Gaussian graphical models