PROBCORE-331 Changed how link drawing is calculated so that multiple links and self loops are drawn correctly.