code for network analysis