It is used to update the arc and node weights in the memory. Updating the Arc Weight is used to update the forward and reverse weight of arcs, and whether the arc is set as the barrier edge. Updating the Node Weight is used to set the turn weight and set whether this node is the barrier point.