Add networkx to package dependencies