Add memory graph