<｜begin▁of▁sentence｜>### Instruction:
Given a list of two Erdos-Renyi graphs with 10 nodes and a probability of 0.5 for edge creation, can you use the LDP model from the ICLR Representation Learning on Graphs and Manifolds Workshop ‘19 paper to get their graph embeddings?
### Response:
import networkx as nx
from karateclub import LDP

# Creating two small graphs
g1 = nx.erdos_renyi_graph(10, 0.5)
g2 = nx.erdos_renyi_graph(10, 0.5)
graphs = [g1, g2]

# Initializing LDP model
model = LDP()

# Fitting the model
model.fit(graphs)

# Getting the embeddings
embeddings = model.get_embedding()

print(embeddings)
<|EOT|>
