Hide the original link during relinking

In the screenshot below, I wanted to relink the link from Alpha to Beta. When I dragged the fromHandle, I wanted to hide the original link from Alpha to Beta (including its selectionAdornment) but keep its fromHandle so that users know the link was from Alpha. I tried to assign a link object to relinkingTool.originalLink, but it did not work.

Any advice or example on how to implement it would be really appreciated!

You actually have a number of cases for which you need to decide the behavior. This will get you most of the functionality that I believe you are asking for:

  $(go.Diagram, . . .,
    {
      "relinkingTool.copyPortProperties": function(realnode, realport, tempnode, tempport, toend) {
        go.RelinkingTool.prototype.copyPortProperties.call(this, realnode, realport, tempnode, tempport, toend);
        this.originalLink.opacity = 0;
        this.originalLink.removeAdornment("Selection");
      },
      "relinkingTool.setNoTargetPortProperties": function(tempnode, tempport, toend) {
        go.RelinkingTool.prototype.setNoTargetPortProperties.call(this, tempnode, tempport, toend);
        this.originalLink.opacity = 1;
        this.originalLink.removeAdornment("Selection");
      },
      "relinkingTool.doDeactivate": function() {
        this.originalLink.opacity = 1;
        this.originalLink.clearAdornments();
        this.originalLink.updateAdornments();
        go.RelinkingTool.prototype.doDeactivate.call(this);
      },
      . . .
    })

Thank you Walter!