<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with vertices [0, 1, 2, 3, 4] and edges [(0,1), (2,3), (1,2), (3,4)], can you use the in_edges method to find the incoming edges of the vertex with index 2?
### Response:
import igraph as ig

# Create a directed graph with edge attributes
g = ig.Graph(directed=True)
g.add_vertices(5)
g.add_edges([(0,1), (2,3), (1,2), (3,4)])

# Get in_edges of vertex with index 2
vertex = g.vs[2]
in_edges = vertex.in_edges()
print('In-edges of vertex 2:', in_edges)
<|EOT|>
