graph factor