Through the NeXt UI documentation, I notice that it's mentioned that:
Property |
Description |
Example value |
id |
Identifier of a link. Likewise node IDs, it should be unique among all the links. |
0 |
source |
ID of a source node. If you explicitly defined it, you may use node's name. |
0 |
target |
ID of node-destination. If you explicitly defined it, you may use node's name. |
1 |
So, I tried to set links as below:
"links":[
{'source': 'SW4', 'target': 'SW3'},
{'source': 'SW4', 'target': 'SW2'},
{'source': 'SW4', 'target': 'SW1'},
{'source': 'SW4', 'target': 'SW5'},
{'source': 'SW4', 'target': 'SW4'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
],
};
But seems it doesn't work well, could you help to give me a suggestion and how to deal with the node's name?