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