Refactoring, supression de networkx