Used networkx lib to extract network properties