cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
688
Views
0
Helpful
1
Replies

Getting node inside nodeSet

viihallja
Level 1
Level 1

Hello,

Is there a way to get nodes/nodeSets inside nodeSet using the getNode method without expanding the nodeSet? If you try to get node inside collapsed nodeSet, the getNode method returns undefined (GetNode - JSFiddle).

1 Reply 1

aaikepae
Cisco Employee
Cisco Employee

Sub node's instances will only be created when nodeSet expanded, and will destroyed when nodeSet is collapsed.

But you can use 'topo.graph().getVertex({id})' to get vertex (node's model)