<｜begin▁of▁sentence｜>### Instruction:
Given a simple graph with vertices named 0, 1, 2, and 3, can you use set_attribute_values to set a 'size' attribute for all vertices to the values [10, 20, 30, 40] accordingly?
### Response:
import igraph as ig

# Create a simple graph
graph = ig.Graph(edges=[(0, 1), (1, 2), (2, 3)])

# Set 'size' attribute for all vertices
g = graph.vs['name'] # Assume the vertices have names 0, 1, 2, and 3

graph.vs.set_attribute_values('size', [10, 20, 30, 40])

# Print out the 'size' attribute for each vertex
for vertex in graph.vs:
    print(f"Vertex {vertex['name']} has size {vertex['size']}")
<|EOT|>
