Changing link direction

I am using TreeLayout and wondering how to change link direction. I referred following documentation.

https://gojs.net/latest/intro/links.html#Arrowheads

It seems link direction is decided by “from” and “to” node definitions in linkDataArray.

Is there a property to override this behaviour and reverse link direction?

Set Diagram | GoJS API , Diagram.isTreePathToChildren, to false.

Looks like it affected to dataModel. Before setting this flag to false

After setting this flag to false

I just want to switch link direction in first screenshot while keeping parent and children data as it is.

Oh, so you just want to change the link arrowheads? I thought you didn’t want to swap the “from” and “to” keys on the link data.

Replace toArrow: "Standard" with fromArrow: "Backward".

Yes, it did the trick. Thanks Walter!