<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(0, 1), (1, 2), (0, 2), (2, 3), (3, 4)], how can you calculate the average path length using the 'Graph.average_path_length' function in igraph?
### Response:
import igraph as ig

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

# Calculate the average path length
avg_path_length = g.average_path_length()
print('Average path length:', avg_path_length)
<|EOT|>
