Efficiency improvement for OfficialSolution2.typeOverridesGraph