<｜begin▁of▁sentence｜>### Instruction:
Certainly! Imagine you're managing your client's business network, and you have a file named 'path_to_file' that represents interactions between different parts of the organization. This file is an edge list where each interaction is on a separate line, featuring two departments (identified by numbers) and the interaction weight (a decimal number indicating the strength or capacity of the interaction).

Your client needs a visual representation of this network. Could you convert this data into a NetworkX graph, treating the department identifiers as integer nodes and the interaction weights as floating-point numbers? Once you've constructed the graph, please provide a list of all the departments and their interactions, including the associated weights, so that the client can easily review the network structure.
### Response:
import networkx as nx
# Assume 'path_to_file' is the path to the file containing the edgelist
g = nx.read_edgelist(path_to_file, nodetype=int, data=(('weight', float),))
print('Nodes:', list(g.nodes()))
print('Edges:', list(g.edges(data=True)))
<|EOT|>
