overloaded agent.deepcopy method to improve performance
now tracks edges per agent