<｜begin▁of▁sentence｜>### Instruction:
As a network technician, you have been tasked with saving the edge list of a graph to a file for documentation purposes. The graph has the edge set [(0, 1), (1, 2), (2, 3)]. Your goal is to use the networkx library to accomplish this task and save the edge list to a file named 'example.edgelist'.
### Response:
import igraph as ig

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

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