minimizing intersections of links on linear ports