Update memory graph