<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 2), (1, 2), (2, 3), (3, 4)], can you use the eccentricity function in igraph to calculate the eccentricities of all the vertices in the graph?
### Response:
import igraph as ig

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

# Compute the eccentricities for all vertices
eccentricities = g.eccentricity()

# Print the eccentricities
print(f'Eccentricities of the vertices: {eccentricities}')
<|EOT|>
