<｜begin▁of▁sentence｜>### Instruction:
In the context of an oil and natural gas exploration network, consider a simplified schematic representation where the nodes [1, 2, 3] symbolize different drilling sites and the edges [(1, 2)] represent existing pipelines connecting two sites. In this scenario, how many drilling sites remain unconnected to the network, thus being analogous to isolated entities with no pipeline infrastructure linking them to other sites? This inquiry pertains to the optimization of resource allocation and logistic planning in hydrocarbon extraction activities.
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_nodes_from([1, 2, 3])
G.add_edges_from([(1, 2)])

# Count the number of isolates
n_isolates = nx.number_of_isolates(G)
print('Number of isolates:', n_isolates)
<|EOT|>
