def smallworld(n_hosts): topo = tg.smallworld(20) tg.add_random_hosts(topo, n_hosts) topo.finalize() return topo
def waxman(n_hosts): topo = tg.waxman(20, beta=0.18) tg.add_random_hosts(topo, n_hosts) topo.finalize() return topo