<｜begin▁of▁sentence｜>### Instruction:
As a Brand Strategist, imagine you're working with a tech company that wants to optimize its online community engagement. They've gathered data on a social network with 100 users and 300 connections. The company is interested in leveraging the EdMot model, a cutting-edge approach that considers motif patterns, to identify key community structures within their network. Your task is to apply this model using the NetworkX library and provide insights into the cluster memberships, helping the company tailor their branding and engagement strategies accordingly.
### Response:
import networkx as nx
from karateclub import EdMot

# Create a graph
G = nx.gnm_random_graph(100, 300)

# Initialize EdMot with default parameters
model = EdMot()

# Fit the model on the graph
def fit_graph(model, graph):
    model.fit(graph)

# Get the cluster memberships of nodes
def get_memberships(model):
    return model.get_memberships()

fit_graph(model, G)
memberships = get_memberships(model)
print(memberships)
<|EOT|>
