Make sure the graph is updated when a unit is moved.