For diagram and EDA tool builders
In a diagram, connectors must avoid the boxes, bend rarely, cross rarely and not lie on top of each other. They should also update when a user drags a box. One crate routes all connectors together and separates them exactly.
Start here
connector-routing
Connector routing for diagrams and schematics: many orthogonal connectors at once with bend, length and crossing costs, negotiated congestion, rip-up and reroute, and nudging
Routes many orthogonal connectors at once with bend, length and crossing costs, then nudges them apart.
First step. Build a scene from your boxes and ports, route all connectors, then nudge the result.
cargo add connector-routing Then look at
heuristic-searchGives the plain shortest path on a general graph, when you need only that.