Fred: Graph with pathsTo; duplicate code exists