<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices, can you use the set_attribute_values method to assign a 'label' attribute to each vertex, corresponding to its index in the graph?
### Response:
from igraph import Graph

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

# Set a vertex attribute 'label' to be the same as the vertex index for all vertices
g.vs.set_attribute_values('label', [str(i) for i in range(g.vcount())])

# Print the 'label' attribute for each vertex
print(g.vs['label'])
<|EOT|>
