<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose node set is [1, 2, 3] and edge set is [(2, 3)], can you determine if the nodes 1 and 2 are isolates using NetworkX?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()

# Add a single node
G.add_node(1)

# Add a group of nodes and an edge between them
G.add_nodes_from([2, 3])
G.add_edge(2, 3)

# Check if a node is an isolate
print('Is node 1 an isolate?', nx.is_isolate(G, 1))
print('Is node 2 an isolate?', nx.is_isolate(G, 2))
<|EOT|>
