Added swap to mem graph