Changed my terms in phase1 to match terms in networkx