created visualization of the network, used simple random function to give positions