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: http://gojs.net/latest/api/symbols/Node.html#findLinksBetween.

Then you can either select them or highlight them. Selection ( http://gojs.net/latest/intro/selection.html ) has a predefined visual representation that can be customized; highlighting ( http://gojs.net/latest/intro/highlighting.html ) only has custom visuals.

You might be interested in the Distances and Paths sample, http://gojs.net/latest/samples/distances.html.

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.