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

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

sampler = FrontierSampler(number_of_seeds=10, number_of_nodes=40, seed=42)

sampler_G = sampler.sample(G)

result = nx.is_chordal(sampler_G)

print(result)
<|EOT|>
