<｜begin▁of▁sentence｜>### Instruction:
Given a random graph generated with the Erdős-Rényi model with 10 vertices and probability of edge creation 0.5, can you use the convergence_degree function in igraph to calculate the convergence degree of each vertex in the graph?
### Response:
import igraph as ig

# Create a random graph
g = ig.Graph.Erdos_Renyi(n=10, p=0.5)

# Get the convergence degree for each vertex in the graph
convergence_degrees = g.convergence_degree()

# Print the convergence degree for each vertex
for index, degree in enumerate(convergence_degrees):
    print(f'Vertex {index}: Convergence Degree = {degree}')
<|EOT|>
