<｜begin▁of▁sentence｜>### Instruction:
Given a graph with a linear layout and edge set [(0, 1), (1, 2), (2, 3), (3, 4)], can you use the Vertex.eccentricity method in igraph to calculate the eccentricity of vertex 0?
### Response:
import igraph as ig

# Create a graph
g = ig.Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4)])

# Get the eccentricity of vertex 0
ecc = g.vs[0].eccentricity()

# Print the eccentricity
print(f'Eccentricity of vertex 0: {ecc}')
<|EOT|>
