added model.graph getter/setter