network analysis

added routine to analyse the network