fix a bug in set_net_topology.m

add calling the function globals.m.
smart indent and add one topology "cyclic"
draw topology