<｜begin▁of▁sentence｜>### Instruction:
Given an instance of an igraph graph with some edges, how can you output the edge list of this graph to a text file using the write_edgelist function?
### Response:
from igraph import Graph

# Assume 'g' is an instance of an igraph graph
g = Graph(edges=[(0, 1), (1, 2), (2, 0)])

# Write the edge list to a text file
g.write_edgelist('output.edgelist')
<|EOT|>
