<｜begin▁of▁sentence｜>### Instruction:
Using the NetworkX library, generate and visualize a Path graph of 5 linearly connected nodes, and output the list of edges in the graph. What are the edges in the generated Path graph?
### Response:
import networkx as nx

# Create a path graph with 5 nodes
G = nx.path_graph(5)

# Draw the graph
nx.draw(G, with_labels=True, node_color='lightblue', font_weight='bold')

# Print the edges of the path graph
print(G.edges())
<|EOT|>
