<｜begin▁of▁sentence｜>### Instruction:
Given a graph read from 'littleballoffur1.sparse6', how can you use RandomEdgeSampler to sample a subgraph with a specified number of edges?
### Response:
import networkx as nx
from littleballoffur import RandomEdgeSampler
G = nx.read_sparse6('littleballoffur1.sparse6')
sampler = RandomEdgeSampler(number_of_edges=10)
sampler_G = sampler.sample(G)
print(sampler_G.edges())
print(sampler_G.nodes());
<|EOT|>
