<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from littleballoffur2.sparse6, can you use FrontierSampler to sample a subgraph which has approximately 50 nodes using 5 seed nodes?
### Response:
import networkx as nx
from littleballoffur import FrontierSampler
G = nx.read_sparse6('littleballoffur2.sparse6')
sampler = FrontierSampler(number_of_seeds=5, number_of_nodes=50)
sampler_G = sampler.sample(G)
print(sampler_G.edges(), sampler_G.nodes())
<|EOT|>
