<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with vertices having a 'color' attribute, how can you retrieve the color values for all the vertices in the graph?
### Response:
import igraph as ig

# Create a graph and add some vertices with a 'color' attribute
g = ig.Graph(directed=True)
g.add_vertices(3)
g.vs['color'] = ['red', 'green', 'blue']

# Get the color attribute values for all vertices
vertex_colors = g.vs.get_attribute_values('color')
print(vertex_colors)
<|EOT|>
