Obtain curve/path that connects two GraphNodes in a GraphEdit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By nonfinity

Hi,
I’ve got a GraphEdit node with two GraphNodes as children, LNode and RNode. I would like to spawn a 3rd node (probably another GraphNode with different styling) at a point on or near LNode’s output port on Slot 0, follow the line of their connection to RNodes input port on Slot 0, then disappear.

Is there a way to access a Curve2d or Path2d node between two GraphNodes?

Alternately, I could perhaps calculate a curve myself based off the GraphNode sizes & offsets, etc. But I’m hesitant because I’ve built some spring forces so the GraphNodes will repel or attract based on whether they’re connected.

Any help would be most appreciated!