<｜begin▁of▁sentence｜>### Instruction:
Given two graphs G1 with edge set [(1, 2), (2, 3)] and G2 with edge set [(3, 4), (5, 6)], how do you combine them into a single graph C that includes all nodes and edges?
### Response:
import networkx as nx

# Create two graphs
G1 = nx.Graph([(1, 2), (2, 3)])
G2 = nx.Graph([(3, 4), (5, 6)])

# Use compose_all to combine the graphs
C = nx.compose_all([G1, G2])

# Print nodes and edges of the resulting graph
print('Nodes:', list(C.nodes()))
print('Edges:', list(C.edges()))
<|EOT|>
