<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős–Rényi random graph with 10 vertices and a probability of 0.5 for edge creation, how would you set custom sizes for each vertex and visualize the resultant graph using igraph?
### Response:
```python
import igraph as ig

# Creating a graph
graph = ig.Graph.Erdos_Renyi(n=10, p=0.5)

# Set sizes for vertices
sizes = [10, 20, 15, 25, 20, 30, 35, 25, 15, 20] # example sizes
g.vs.set_size(sizes=sizes)

# Plot the graph
ig.plot(graph)
```
<|EOT|>
