An additive graphical model for discrete data