<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edges between nodes 1 and 2, 2 and 3, 3 and 4, and 4 and 1, how would you plot a histogram of the degree distribution using NetworkX and matplotlib?
### Response:
import matplotlib.pyplot as plt
<|EOT|>
