<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph where multiple edges might exist between two nodes, how can you use the autocurve function in igraph to automatically calculate curvature values and assign them to the edges in order to display those edges clearly in a graph plot?
### Response:
import igraph as ig

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

# Automatically calculate curvature values and assign them to edges
g.autocurve(attribute='curvature')

# Print the curvature values for each edge
print(g.es['curvature'])
<|EOT|>
