I have no solution to this, but I think that modelling is not the way to go. It highly depends on what you want exactly, but maybe you could use Shaders (look at this: https://github.com/fletchgraham/nodevember#day-03-lightning).
When you want to have real geometry, then GN would probably the best way, but even then it won’t be easy….to get the Vector between two points is easy (as is to get the Distance):

just subtract the two positions.
But there is no loop yet, so you’d have to do that for every pair of neighbouring points…Which means that you’d have to know the number of Vertices beforehand…
I am not a GN expert and maybe the latest (or near future) version can handle this…