<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(1, 2), (1, 3), (2, 4)], how would you create an empty copy of this graph, that is a graph with the same nodes but without any edges or data?
### Response:
import networkx as nx

# Create a graph with some nodes and edges
G = nx.Graph()
G.add_edges_from([(1, 2), (1, 3), (2, 4)])

# Create an empty copy of the graph without the node/edge data
H = nx.create_empty_copy(G, with_data=False)

print('Nodes in original graph:', G.nodes())
print('Nodes in empty copy:', H.nodes())
print('Edges in original graph:', G.edges())
print('Edges in empty copy:', H.edges())
<|EOT|>
