<｜begin▁of▁sentence｜>### Instruction:
Given a sequence of three graphs with weighted edges, how can you use the omnibus_embedding_pairwise function from the graspologic library to create an embedding for each pair of these graphs? Assuming the graphs are labeled G1, G2, and G3, the embeddings will be computed for (G1, G2) and (G2, G3). Each graph should contain the nodes 0, 1, and 2, with their corresponding weighted edges.
### Response:
import networkx as nx
from graspologic.pipeline.embed import omnibus_embedding_pairwise

# Create a list of graphs (A, B, and C) for pairwise embedding
G1 = nx.Graph()
G2 = nx.Graph()
G3 = nx.Graph()
G1.add_weighted_edges_from([(0, 1, 1), (1, 2, 1)])
G2.add_weighted_edges_from([(0, 1, 1), (1, 2, 2)])
G3.add_weighted_edges_from([(0, 1, 3), (1, 2, 1)])
graphs = [G1, G2, G3]

# Perform pairwise omnibus embedding
embeddings = omnibus_embedding_pairwise(graphs=graphs, dimensions=2)

for i, (emb1, emb2) in enumerate(embeddings):
    print(f'Embedding of graph {i+1} and graph {i+2}:\nFirst graph embedding:\n{emb1}\nSecond graph embedding:\n{emb2}\n')
<|EOT|>
