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

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

# Write the graph's edge list to 'sample_graph.lgl'
g.write_lgl('sample_graph.lgl')
<|EOT|>
