<｜begin▁of▁sentence｜>### Instruction:
As a plastic surgeon, you often need to analyze the structures and coreness of various anatomical features before proceeding with surgical interventions. Similarly, in the field of network analysis, there is a tool called the coreness function in the NetworkX library, which can be used to determine the coreness of each vertex in a graph. For instance, if you have a random Erdős-Rényi graph with 10 vertices and 20 edges, you may use the coreness function in NetworkX to analyze the coreness of each vertex, similar to how you would evaluate the coreness of specific anatomical structures before performing surgical procedures.
### 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|>
