<｜begin▁of▁sentence｜>### Instruction:
Given a complete graph with 5 nodes, how do you write this graph to a Graphviz dot format file using NetworkX?
### Response:
import networkx as nx

# Create a simple graph
g = nx.complete_graph(5)

# Write the graph to a dot file
nx.nx_pydot.write_dot(g, 'graph.dot')
<|EOT|>
