<｜begin▁of▁sentence｜>### Instruction:
As a Childbirth Educator, I can help you with information on networkx and igraph. Suppose you are organizing a childbirth education event that involves coordinating expectant parents' schedules and important information. In this practical scenario, how would you save the networkx graph with the edges (0, 1), (1, 2), (2, 3), (3, 0) to a file in LEDA format using the igraph API?
### 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|>
