<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with the edges (0, 1), (1, 2), (2, 3), (3, 0), how can you save this graph to a file in LEDA format using igraph?
### Response:
import igraph as ig

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

# Write the graph to a file in LEDA format
g.write_leda('graph.leda')
<|EOT|>
