Tried to collect Nodes and Edges in AgentMap