<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=1000, p=0.3, can you use NonBackTrackingRandomWalkSampler to sample a subgraph which has 200 nodes and check whether the sampled graph is connected or not ?
### Response:
import networkx as nx
from littleballoffur import NonBackTrackingRandomWalkSampler

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

sampler = NonBackTrackingRandomWalkSampler(200, seed=10)

sampler_G = sampler.sample(G)

result = nx.is_connected(sampler_G)

print(result)
<|EOT|>
