init functions used in analysis of complex networks.