<｜begin▁of▁sentence｜>### Instruction:
Given a scenario where we want to create a network consisting of 3 separate close-knit communities (cliques), each comprising 4 individuals, how would we use NetworkX to model such a social structure and visualize it?
### Response:
import networkx as nx

# Create a caveman graph with 3 cliques, each of size 4
G = nx.caveman_graph(3, 4)

# Draw the graph
import matplotlib.pyplot as plt
nx.draw(G, with_labels=True)
plt.show()
<|EOT|>
