Diagram: improved link routing