<｜begin▁of▁sentence｜>### Instruction:
Given a fully connected graph with 5 vertices, can you set the size attribute for each vertex using the set_sizes() method from the VertexCollection class in igraph, resulting in sizes 10, 20, 30, 20, and 10 respectively?
### Response:
import igraph as ig

# Create a graph with 5 vertices
g = ig.Graph.Full(5)

# Access the VertexCollection of the graph
vertices = g.vs

# Set the sizes for all vertices
g.vs['size'] = 10

# Alternatively, set different sizes for different vertices using set_sizes()
# Assume we want the vertex sizes to be 10, 20, 30, 20, and 10 respectively
vertex_sizes = [10, 20, 30, 20, 10]
vertices.set_sizes(vertex_sizes)

# Now print the 'size' attribute to confirm changes
print(g.vs['size'])
<|EOT|>
