<｜begin▁of▁sentence｜>### Instruction:
Given a random Erdős-Rényi graph with 10 vertices and 20 edges, can you use the coreness function in igraph to find the coreness of each vertex?
### Response:
import igraph as ig

# Create a sample graph
g = ig.Graph.Erdos_Renyi(n=10, m=20)

# Calculate coreness
vertex_coreness = g.coreness(mode='all')

# Print coreness of each vertex
for i, coreness in enumerate(vertex_coreness):
    print(f'Vertex {i}: Coreness {coreness}')
<|EOT|>
