Make Wavy path act like spring
Make link paths wavy for randomly-generated network.
wave
function creates a wavy-like path between source and target link, using coordinate transforamtions.
Other variants
Springy version nudged by @HarryStevens
https://d3js.org/d3.v4.min.js