Highlight links between nodes

Hi, I have a array of node keys. I am selecting the nodes contained in this array.
Is there a way I can just highlight the links between these nodes ?

Eg. array = {-1,-2,-3}
I want to highlight links between -1, -2 & -3 only.

Given two Nodes, you can find the Links that directly connect them by calling Node.findLinksBetween: Node | GoJS API.

Then you can either select them or highlight them. Selection ( GoJS Selection -- Northwoods Software ) has a predefined visual representation that can be customized; highlighting ( GoJS Highlighting -- Northwoods Software ) only has custom visuals.

You might be interested in the Distances and Paths sample, Graph Distances and Paths.

Great. This solved my problem.
I have another question though: Is there any way I can detect duplicate start and end nodes ? I am implementing ExternalObjectsDropped event, but that detected every node as duplicate incorrectly.