<｜begin▁of▁sentence｜>### Instruction:
Imagine that you're planning a community-building activity for a group of 30 participants, with the aim of fostering connections and understanding the dynamics of their interactions. For this exercise, you'd like to craft a model that mirrors the small-world phenomenon often observed in social groups. Specifically, you're envisioning a scenario in which each person initially has a direct line of communication with their 4 closest peers. To add an element of chance and to mimic potential shifts in relationships, you intend to introduce the possibility of changing these connections.

Now, picture that you have a metaphorical 'social fabric' where there's a 10% likelihood for any given link between participants to be redirected, connecting them with someone potentially further afield in the network, thereby creating new and unexpected pathways of interaction. To keep the starting conditions consistent for each time you run this exercise, you'll use the number 42 as a fixed reference point, ensuring that the initial setup is reproducible. How would you encapsulate this social experiment within the framework of a Watts-Strogatz small-world model using NetworkX?
### Response:
import networkx as nx

# Parameters
n = 30  # number of nodes
k = 4  # each node is connected to k nearest neighbors in ring topology
p = 0.1  # probability of rewiring each edge
seed = 42  # seed for random number generator

# Generate the graph
ws_graph = nx.watts_strogatz_graph(n, k, p, seed)

# Draw the graph
nx.draw_circular(ws_graph, with_labels=True)
plt.show()
<|EOT|>
