Install networkx up front