<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 5 nodes labeled from 0 to 4, can you use networkx to relabel the nodes with the following mapping: {0: 'a', 1: 'b', 2: 'c', 3: 'd', 4: 'e'} and print out the new graph?
### Response:
from networkx import relabel_nodes

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

# Define a mapping to relabel nodes
mapping = {0: 'a', 1: 'b', 2: 'c', 3: 'd', 4: 'e'}

# Relabel nodes using the mapping
H = nx.relabel_nodes(G, mapping)

# Print the relabeled graph
print(H.nodes())
<|EOT|>
