working networkxtest.py