<｜begin▁of▁sentence｜>### Instruction:
As a swim instructor, imagine that you have a group of 10 individuals with varying swimming abilities, and you want to teach them different techniques based on their skills. Using a probability-based approach, you want to create connections among them for collaborative learning, with a probability of 0.5 for a successful connection. How would you assign custom exercises to each individual based on their abilities and visualize the connections using a swimming pool graph visualization tool?
### 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|>
