<｜begin▁of▁sentence｜>### Instruction:
Given two graphs G1 with nodes [1, 2, 3] and edges [(1, 2), (2, 3)], and G2 with nodes [4, 5, 6] and edges [(4, 5), (5, 6)], can you determine if G1 and G2 are isomorphic using the NetworkX function 'is_isomorphic'?
### Response:
import networkx as nx
from networkx.algorithms.isomorphism import is_isomorphic

# Create two graphs G1 and G2
G1 = nx.Graph()
G2 = nx.Graph()

# Add nodes and edges to the first graph G1
G1.add_nodes_from([1, 2, 3])
G1.add_edges_from([(1, 2), (2, 3)])

# Add nodes and edges to the second graph G2
G2.add_nodes_from([4, 5, 6])
G2.add_edges_from([(4, 5), (5, 6)])

# Check if the two graphs are isomorphic
result = is_isomorphic(G1, G2)
print('G1 and G2 are isomorphic:', result)
<|EOT|>
