<｜begin▁of▁sentence｜>### Instruction:
{'description': 'Given a MultiGraph with multiple edges between two nodes, simplify it to a Graph where those parallel edges are merged into a single edge.', 'field list': {'MG': 'An instance of a networkx.MultiGraph that may contain multiple edges between the same two nodes.', 'H': 'An instance of networkx.Graph created by passing the MultiGraph to its constructor, effectively hiding the multi-edges.'}, 'rubrics': {'Input': 'A networkx.MultiGraph object with possible multi-edges between nodes.', 'Output': 'A networkx.Graph object with no multi-edges, only single edges retained from the original multi-edges.'}}
### Response:
import networkx as nx

# Generate a MultiGraph with multiple edges
MG = nx.MultiGraph()
MG.add_edge('A', 'B')
MG.add_edge('A', 'B')  # Adding a parallel edge
MG.add_edge('B', 'C')

# Hide multi-edges
H = nx.Graph(MG)

# Now H will have single edge between two nodes where MG had multiple edges
print(H.edges())
<|EOT|>
