Hi Walter,

Is there, any way to order the nodes with the links.

Can we use linkDataArray to find the order of the nodes, Is that possible ?.

Thanks in Advance.

Regards,

Akhil

Hi Walter,

Is there, any way to order the nodes with the links.

Can we use linkDataArray to find the order of the nodes, Is that possible ?.

Thanks in Advance.

Regards,

Akhil

Could you show examples of what you want to do?

While Linking **A** to **B** we need to save an order at the backend as 1. So how to find the order between these nodes.

Thanks in Advance.

Regards,

Akhil.

*If there are no cycles*, you could call **Node.findTreeLevel**, Node | GoJS API, to get a zero-based number.

If there might be cycles, I suppose you could find the distance from a root by adapting the code in Graph Distances and Paths

If you want to prevent the user from creating any cycle, set Diagram | GoJS API