<｜begin▁of▁sentence｜>### Instruction:
As a biologist, you're conducting a study on the interactions between different species within a habitat. You've gathered data on a network representing these interactions, with edges connecting species that have some form of relationship. Now, you need to export this network data into a file format for further analysis. Using the `write_lgl` function provided by the igraph API, you aim to save the edge list of the network into a file in .lgl format.
### Response:
from igraph import Graph

# Define your graph
edges = [(0, 1), (0, 2), (2, 3), (3, 4)]
g = Graph(edges)

# Write to .lgl format
filename = 'graph.lgl'
g.write_lgl(filename)
print(f'The graph has been written to {filename}')
<|EOT|>
