Refactor Evolver to use networkx to store graphs