adding networkx example from glowingpython.com