<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and labels 'A', 'B', 'C', 'D', 'E', how would you set a new vertex attribute called 'color' with values ['red', 'green', 'blue', 'yellow', 'pink'] for each respective vertex and then print the 'color' attribute for all vertices?
### Response:
from igraph import Graph

# Create a graph with 5 vertices
g = Graph(n=5)

# Define a list with the vertex label values
g.vs['label'] = ['A', 'B', 'C', 'D', 'E']

# Now set a new attribute 'color' for all vertices
g.vs.set_attribute_values('color', ['red', 'green', 'blue', 'yellow', 'pink'])

# Print the 'color' attribute of all vertices
print(g.vs['color'])
<|EOT|>
