I bumped into a situation which I cant understand.
I’m using node.isInTreeOf(node) method and it returns unexpected result
Visiually everything seems to be ok, but somehow node 2 (check screenshot) is not in the tree of Root node.
I’m trying to understand how that happened but right now I dont have any clues
new go.Set(node1.linksConnected).has(link12)
new go.Set(node2.linksConnected).has(link12)
node2.findTreeParentLink() === link12
node2.findTreeParentNode() === node1
new go.Set(node1.findTreeChildrenLinks()).has(link12)
new go.Set(node1.findTreeChildrenNodes()).has(node2)
I think I know now why that happened, node2 has another link into it. Its hidden.
How I can escape from this use case? I want rootNode to be a tree root of this node2