adding networkx