<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from littleballoffur10.sparse6, can you use BreadthFirstSearchSampler to sample a subgraph with exactly 10 nodes?
### Response:
import networkx as nx
from littleballoffur import BreadthFirstSearchSampler
G = nx.read_sparse6('littleballoffur10.sparse6')
sampler = BreadthFirstSearchSampler(number_of_nodes=10)
sampled_graph = sampler.sample(G)
print(sampled_graph.edges(), sampled_graph.nodes())
<|EOT|>
