networkx data update