Highlighting nodes and connections

Hi we Would like to pass an array of nodes and highlight nodes and connections in one direction for those nodes

I.e. provide node 1, 6, 8, 11 and although 8 and 6 have connections in both directions just highlight in the order of the array (6 to 8 not 8 to 6)

Hope that makes sense?

OK, so I assume you have already sorted that Array of Nodes to be in the order that you want. For each Node (other than the last one), call Node.findLinksOutOf and iterate over that collection of Links to see if the other Node (Link.toNode) is later in your Array of Nodes. If so, set Part.isHighlighted to true.

Separately, you’ll want to make sure your Link template does something so that each link shows that it is highlighted.