https://observablehq.com/@christophermanning/d3-force-angle-based-force-plugin?collection=@christophermanning/force-layouts
Generates a force that directs nodes towards the angle specified from the previous two nodes. The example uses an angle function that generates a square wave...
christopher manningforceanglebasedplugin