<｜begin▁of▁sentence｜>### Instruction:
Create a wheel graph with 5 nodes and display its nodes and edges. A wheel graph is a graph that consists of a single central node (hub) connected to a cycle of (n-1) other nodes.
### Response:
import networkx as nx

# Create a wheel graph with 5 nodes
W = nx.wheel_graph(5)

# Print the nodes and edges of the wheel graph
print('Nodes:', W.nodes())
print('Edges:', W.edges())
<|EOT|>
