<｜begin▁of▁sentence｜>### Instruction:
Certainly! Let's say you're organizing a dental health awareness event, and you want to create a visual representation of the connections among the dental professionals and the services they provide. You want to save this information in a format that can be easily shared and visualized. For this purpose, you can use the `write_leda` function in the networkx library to write the graph to a file in LEDA native format, ensuring that the relationships and connections are accurately represented.
### Response:
from igraph import Graph

# Create a new directed graph
g = Graph(directed=True)

# Add vertices and edges
g.add_vertices(3)
g.add_edges([(0,1), (1,2)])

# Write to LEDA format file
g.write_leda('output.leda')
<|EOT|>
