<｜begin▁of▁sentence｜>### Instruction:
As a recruiter, I often encounter situations where I need to reverse the direction of a candidate's progression through the recruitment process. Imagine a scenario where a candidate has completed an interview, received an offer, and is now undergoing the onboarding process. In the context of networkx, it's like flipping the direction of all the edges in a directed graph. This can be achieved using the `reverse_edges` function from the igraph API, effectively changing the flow of the candidate's journey.
### Response:
from igraph import Graph

# Create a directed graph
graph = Graph(directed=True)

# Add 5 vertices
graph.add_vertices(5)

# Add edges with specific direction
graph.add_edges([(0, 1), (0, 2), (2, 3), (3, 4)])

# Reverse the direction of all edges in the graph
g_reversed = graph.reverse_edges()

# Print the reversed edges
print(g_reversed.get_edgelist())
<|EOT|>
