<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from littleballoffur14.sparse6, can you use SnowBallSampler to sample a subgraph with exactly 10 nodes, limiting the degree to 5 and using a random seed of 42?
### Response:
import networkx as nx
from littleballoffur import SnowBallSampler
G = nx.read_sparse6('littleballoffur14.sparse6')
sampler = SnowBallSampler(number_of_nodes=10, k=5, seed=42)
sampler_G = sampler.sample(G)
print(sampler_G.edges(), sampler_G.nodes())
<|EOT|>
