<｜begin▁of▁sentence｜>### Instruction:
As an environmental activist researching species migration patterns, you may have a large network dataset representing habitat connectivity. To support your research, we could look into how the igraph `write_picklez` function can be used to save this network in a compressed pickle format. This would facilitate the sharing and efficient storage of your important ecological data.
### Response:
import igraph as ig

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

# Save the graph to a compressed pickle file
g.write_picklez('graph_compressed.picklez')
<|EOT|>
