<｜begin▁of▁sentence｜>### Instruction:
As an urban designer, you are tasked with creating a digital representation of a proposed city block, including the layout of buildings, streets, and open spaces. You have gathered data about the connectivity of the streets and would like to save this information to a file using the 'write' function in NetworkX, a Python library for working with complex networks.
### Response:
from igraph import Graph

# Define the edges for the graph
edges = [(0, 1), (1, 2), (2, 3), (3, 4)]

# Create the graph with the defined edges
g = Graph(edges=edges)

# Saving graph to a file in GraphML format
g.write('my_graph.graphml')
<|EOT|>
