Custom Graph Problem