<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with vertices and directed edges with specific arrow widths set as edge attributes, how can you retrieve the list of arrow widths for all the edges in the graph?
### Response:
from igraph import Graph

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

# Set edge attributes for arrow width
g.es['width'] = [1, 2]

# Get arrow widths for the edges
arrow_widths = g.es.get_arrow_width()

# Output the arrow widths
print(arrow_widths)
<|EOT|>
