Add networkx dependencies