Changed arc to edge and updated memory dynamic graph.