updated networkx functions