<｜begin▁of▁sentence｜>### Instruction:
As a teacher assistant, you are helping a teacher with graph concepts. Your teacher wants to reverse the direction of specific edges in a directed graph represented by an edge list. The edge list contains the connections between different points in a network. Your task is to use the reverse_edges function to reverse the direction of edges with IDs 1 and 2, and then print the modified edge list. This will help the students understand how to manipulate edge directions in a graph.
### Response:
from igraph import Graph

# Create a directed graph with edges
edges = [(0,1), (1,2), (2,3), (3,4)]
g = Graph(edges=edges, directed=True)

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

# Print the modified graph's edge list
g_edges_reversed = g.get_edgelist()
print('Edges after reversal:', g_edges_reversed)
<|EOT|>
