Adding memory graphs