<｜begin▁of▁sentence｜>### Instruction:
Given two graphs, a star graph with 5 nodes and a cycle graph with 5 nodes, how can you use the LDP model to generate their graph embeddings?
### Response:
import networkx as nx
from karateclub import LDP

# Create two small graphs
g1 = nx.star_graph(4)
g2 = nx.cycle_graph(5)
graphs = [g1, g2]

# Initialize LDP Model
model = LDP()

# Fit the LDP Model
model.fit(graphs)

# Get the embedding
embedding = model.get_embedding()
print(embedding)
<|EOT|>
