<｜begin▁of▁sentence｜>### Instruction:
Given a simple undirected graph with edges [(1, 2), (1, 3), (2, 3), (3, 4)], can you use the plt module from matplotlib along with networkx to draw and display the graph?
### Response:
import matplotlib.pyplot as plt
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edges_from([(1, 2), (1, 3), (2, 3), (3, 4)])

# Draw the graph
nx.draw(G, with_labels=True)

# Show the plot
plt.show()
<|EOT|>
