(Memory) Change addEdge method of MemoryExclusionGraph to improve performance.