<｜begin▁of▁sentence｜>### Instruction:
Given two directed graphs, g1 with edges (1, 2), (2, 3), and g2 with edges (2, 3), (3, 4), how can you perform in-place subtraction of g2 from g1 using networkx and display the edges of the resulting graph?
### Response:
import networkx as nx

# Create two directed graphs
g1 = nx.DiGraph()
g1.add_edges_from([(1, 2), (2, 3)])
g2 = nx.DiGraph()
g2.add_edges_from([(2, 3), (3, 4)])

# Perform in-place subtraction; remove edges from g1 that are in g2
g1 -= g2

# Display the edges of the resulting graph
print(g1.edges())
<|EOT|>
