<｜begin▁of▁sentence｜>### Instruction:
Given an Erdos-Renyi graph with 100 nodes and a probability of edge creation of 0.05, can you use the SymmNMF model to get node embeddings and their cluster memberships?
### Response:
import networkx as nx
from karateclub import SymmNMF
import numpy as np

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

# Initialize the SymmNMF model with default parameters
model = SymmNMF()

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

# Get the resulting node embeddings
embeddings = model.get_embedding()

# Get the cluster memberships of nodes
memberships = model.get_memberships()

print(embeddings)
print(memberships)
<|EOT|>
