Exemple #1
0
def smallworld(n_hosts):
    topo = tg.smallworld(20)
    tg.add_random_hosts(topo, n_hosts)
    topo.finalize()
    return topo
Exemple #2
0
def waxman(n_hosts):
    topo = tg.waxman(20, beta=0.18)
    tg.add_random_hosts(topo, n_hosts)
    topo.finalize()
    return topo