<｜begin▁of▁sentence｜>### Instruction:
As a Quality Assurance Tester, you have a task to perform a quality test using the igraph library in Python. You need to write a graph to a file in Pajek format using the write_pajek function. The graph you will be using has the edge set [(0, 1), (1, 2), (2, 0)]. Can you accomplish this using the write_pajek function in igraph?
### Response:
from igraph import Graph

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

# Write the graph to a file in Pajek format
filename = 'mygraph.net'
g.write_pajek(filename)
print(f'Graph has been written to {filename} in Pajek format.')
<|EOT|>
