Code for analysis of networks with Snap