1 2 3
Replaces the attribute of an edge with a new value, returning the old one. If the edge does not exist, an error is returned.