Social network analysis scripts