<｜begin▁of▁sentence｜>### Instruction:
Given a directed igraph graph which has been read from a file or created programmatically, how can you obtain the arrow widths for all the edges in the graph?
### Response:
from igraph import Graph
import json

# Assuming 'g' is a directed igraph graph instantiated elsewhere
arrow_widths = g.es.get_arrow_width()

# Now you can do something with the array of arrow widths
# For example, print them or write them to a file
print(arrow_widths)
<|EOT|>
