Update python_networkx.py