Sets (adding if missing, overwriting if present) the weight of the edge going from edge.first to edge.second to weight, in place.
edge.first
edge.second