<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 3 vertices, how can we set a common attribute with the specified value for all the vertices and then print those values?
### Response:
from igraph import Graph
import igraph as ig

# create a graph with 3 vertices
g = Graph(n=3)

# set an attribute for all vertices
g.vs['label'] = ['A', 'B', 'C']

# set_attribute_values is used to set the same attribute value for all vertices
g.vs.set_attribute_values('attribute_name', 'value')

# Print the attribute values for each vertex
for v in g.vs:
    print(v['attribute_name'])
<|EOT|>
