I\'m working with networkx and I have two graphs; G1 and G2. To use networkx.difference the nodes in the graphs must be the same, so I need to remove the nodes in G1 not present