<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from littleballoffur10.sparse6, how can you use RandomNodeEdgeSampler to sample a subgraph with a specific number of edges?
### Response:
import networkx as nx
from littleballoffur import RandomNodeEdgeSampler
G = nx.read_sparse6('littleballoffur10.sparse6')
sampler = RandomNodeEdgeSampler(number_of_edges=50, seed=42)
sampled_G = sampler.sample(G)
print(sampled_G.edges(), sampled_G.nodes())
<|EOT|>
