The goal of this bl.ock is a basic proof of concept in using force-directed layouts to set paths.
The force does not always work on this layout, but one of the two should each time at a minimum.
All land has been covered in a regular grid of points, which are incorporated into the force simulation. The force runs for 100 iterations before drawing a final line. Each route is drawn along the shortest path between the end points, however, a number of points are added along the route (and a number over the start and end points). The points are linked together with force links. The new points are added to the force simulation and the simulation is started.
After 100 iterations, a splined line is drawn connecting the points that were added and then forced into a usually sea-only routing.
This simulation wouldn't be able to handle Lisbon to Colombo directly very well (the middle port is Luanda) as it's just a bit to indirect to achieve routinely with this approach.
https://d3js.org/d3.v4.min.js
https://d3js.org/topojson.v2.min.js