updated storeNetworkxGraph