Networkx Remove Nodes Without Edges