generalized graph-model for agfk models