<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with 5 vertices and edges (0,1), (1,2), (2,3), (3,4), how can you reverse the direction of edges with edge IDs 1 and 2 using GraphBase.reverse_edges?
### Response:
import igraph as ig

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

# Reverse the edges with IDs 1 and 2
g.reverse_edges([1, 2])

# Print the edges to show they have been reversed
print(g.get_edgelist())
<|EOT|>
