How can we change color of links

How to change color of incoming links & out links of a node?
How to manage color of links with respect to directions?
With respect to incoming or outgoing directions.

with respect to node?

You’re asking a lot of questions here, all relating to several different issues under unspecified conditions.

First, you should know about graph navigation, which is mostly covered by methods on the Node class, Node | GoJS API, in addition to the Link.fromNode and Link.toNode properties. Also, see this sample: Navigation of Graphs

Second, you can change the color of particular Shapes by setting or binding their Shape.stroke property. For example, see the link template used in GoJS Validation -- Northwoods Software

Thanks a lot