<｜begin▁of▁sentence｜>### Instruction:
Given a directed igraph instance with nodes and edges defined, can you write this graph to a GraphML file using the igraph write_graphml function?
### Response:
from igraph import Graph

# Example graph with 3 nodes and 3 edges
g = Graph(edges=[(0, 1), (1, 2), (2, 0)], directed=True)

# Writing the graph to a GraphML file
g.write_graphml('example_graph.graphml')
<|EOT|>
