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

G = nx.erdos_renyi_graph(n=800, p=0.3)

sampler = RandomNodeNeighborSampler(number_of_nodes=100)

sampler_G = sampler.sample(G)

result = nx.is_connected(sampler_G)

print(result)
<|EOT|>
