Replace the graph copy in cycles.simple_cycles from a proper deepcopy (which copies extra data) to a shallow copy that only copies the graph structure.