network analysis scripts