arranging links on linear ports: two or more links with the same source and destination