<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and edges forming a simple path from vertex 0 to vertex 4, can you use 'set_attribute_values' to set a 'color' attribute with the value 'blue' for all vertices? Print the color of each vertex after setting the attribute.
### Response:
from igraph import Graph

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

# Add some edges
g.add_edges([(0, 1), (1, 2), (2, 3), (3, 4)])

# Use 'set_attribute_values' to set an attribute for all vertices
g.vs.set_attribute_values('color', 'blue')

# Print out the color attribute of each vertex
for v in g.vs:
    print(v.index, v['color'])
<|EOT|>
