Code for Network Visualization