<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=1000, p=0.1, can you use FrontierSampler to sample a subgraph of 200 nodes with 20 seed nodes and determine the connected components of the sampled graph?
### Response:
import networkx as nx
from littleballoffur import FrontierSampler

G = nx.gnp_random_graph(n=1000, p=0.1)

sampler = FrontierSampler(number_of_seeds=20, number_of_nodes=200, seed=42)

sampler_G = sampler.sample(G)

result = nx.connected_components(sampler_G)

print(result)
<|EOT|>
