Remove another memory leak from ABCD by using Edges by value instead of