Fred: Graph with paths_to; duplicate code exists