<｜begin▁of▁sentence｜>### Instruction:
Given a graph created with the Erdős-Rényi model having 10 nodes and 20 edges, can you use the eccentricity method on the first vertex to find its eccentricity?
### Response:
import igraph as ig

# Create a graph
g = ig.Graph.Erdos_Renyi(n=10, m=20)
v = g.vs[0]

# Calculate the eccentricity of the first vertex
eccentricity = v.eccentricity()

print(f'The eccentricity of vertex 0 is: {eccentricity}')
<|EOT|>
