Forked from Pratap Vardhan’s block.
Make link paths wavy for randomly-generated network.
wave
function creates a wavy-like path between source and target link, using coordinate transforamtions.
I just updated the wave
function so that the step
variable is dependent upon the distance between nodes, so the link looks like a spring.