The custodial parent is the child lived with for more than 183 days in 2016. If the child lived both parents the same number of days (for example, if the parents split up after the end of the year) then the highest AGI controls, so in that respect you are correct.