<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős-Rényi graph with 10 vertices and 20 edges, can you use the write_lgl function in igraph to save the graph's edge list to a file in LGL format?
### Response:
from igraph import Graph

# Create an example graph
g = Graph.Erdos_Renyi(n=10, m=20)

# Write the graph to a file in LGL format
g.write_lgl('example_graph.lgl')
<|EOT|>
