<｜begin▁of▁sentence｜>### Instruction:
Given a tree graph with 5 vertices where each parent vertex is connected to 2 children, can you calculate the eccentricity of a vertex (for example, the second vertex in the vertex sequence)? Use the eccentricity method accessible from the vertex instance in igraph. Note: Eccentricity of a vertex is the maximum shortest path length from the given vertex to any other vertex in the graph.
### Response:
from igraph import Graph

# Create a graph
g = Graph.Tree(5, 2) # A tree graph with 5 vertices and children having 2 edges each

# Select a vertex
vertex = g.vs[1]

# Find the eccentricity of the selected vertex
ecc = vertex.eccentricity()

# Print the eccentricity
print('Eccentricity of the vertex:', ecc)
<|EOT|>
