<｜begin▁of▁sentence｜>### Instruction:
Imagine we're inspecting the safety protocols within a company's communication network, conceptualized as a path graph with 4 nodes representing different departments. In order to thoroughly review our safety measures, we need to document the connections between these departments. Could you draft a report that lists all direct lines of communication—these are the edges in our path graph—including any relevant details about those connections? For our records and further analysis, please compile this information into a GML file named "department-communications.gml". This will allow us to ensure that all safety information is being properly disseminated throughout the company's network.
### Response:
import networkx as nx

# Create a graph
G = nx.path_graph(4)

# Write the edge list to a file
nx.write_edgelist(G, 'test.edgelist', data=True)
<|EOT|>
