You can add the Node to a family "NodeFamily" and then pick Node by UID for the first one and pick NodeFamily by UID for the second one. Then you can create a wire at Node.X, Node.Y and set it's angle towards NodeFamily.X, NodeFamily.Y.
The other way to do it would be to pick one Node by UID first and store it's x,y values in local variables. Then pick the second node and do your thing.