Thank you so much for your reply!
I tried your node setup, but I think that it will not work with selections with a more complex topology than a loop.
I was almost able to do it but the output is a series of splines instead of a single one.
If someone wants to give a try, here is my setup and my node asset
Edge to Spline.c4d
Edges To Spline.zip