Library for the analysis of networks