<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 1), (1, 2), (2, 0)], how can you use the write_lgl function in igraph to write the edge list of this graph to a file in .lgl format?
### Response:
import igraph as ig

# Example graph
g = ig.Graph(edges=[(0, 1), (1, 2), (2, 0)])

# Writing the graph to an LGL file
g.write_lgl('example_graph.lgl')
<|EOT|>
