<｜begin▁of▁sentence｜>### Instruction:
As a Clinical Research Coordinator overseeing a study on social network analysis, I'm working with a G(n,p) random graph consisting of 100 nodes and an edge creation probability of 0.05. I want to apply the EdMot model to detect communities within the graph, aiming to extract 2 components with a motif edge cut-off value of 50. Additionally, I need to set a random seed value of 42 for reproducibility.
### Response:
import networkx as nx
from karateclub import EdMot

# Create a graph
G = nx.gnp_random_graph(100, 0.05)

# Initialize EdMot model with desired parameters
model = EdMot(component_count=2, cutoff=50, seed=42)

# Fit the model to the graph
model.fit(G)

# Get the cluster memberships
memberships = model.get_memberships()
print(memberships)
<|EOT|>
