set_topo function

Set the topology in a network model.