<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=500, p=0.3, can you use SnowBallSampler to sample a subgraph starting from node 0 which has 50 nodes and 30 as the bound on degree?
### Response:
import networkx as nx
from littleballoffur import SnowBallSampler

G = nx.gnp_random_graph(n=500, p=0.3)
sampler = SnowBallSampler(number_of_nodes=50, k=30, seed=42)
sampled_G = sampler.sample(G, start_node=0)
print(sampled_G.number_of_nodes())
<|EOT|>
