<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with the edge set [(0, 1), (1, 2), (2, 3), (3, 4)], how can you use set_arrow_widths in igraph to set the arrow widths of all edges to 2 and plot the graph with these arrow widths?
### Response:
import igraph as ig

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

# Set the arrow widths for the graph edges
g.es.set_arrow_widths(2)

# Plot the graph
g.plot('graph_with_arrows.png')
<|EOT|>
