<｜begin▁of▁sentence｜>### Instruction:
Suppose you have a cycle graph with 4 nodes. How would you compute and display the closeness vitality for each node in this graph using NetworkX?
### Response:
import networkx as nx

# Create a graph
G = nx.cycle_graph(4)

# Calculate the closeness vitality for each node
vitality = nx.closeness_vitality(G)

# Display the closeness vitality of each node
print(vitality)
<|EOT|>
