如何从 VIS.js 网络获取所有节点 ID
How to get all node Ids from VIS.js network
我想检索已呈现的 vis.js 网络的所有节点的 ID。
我该怎么做?
// I want to do something similar to this.
nodeIdArray:String[]= this.network.getAllNodeIds()
感谢任何对此的指点。
找到解决方案:
this.nodes = new DataSet(data.nodes)//Get the nodes
this.nodes.getIds() //This gives the string array of the node Id's
我想检索已呈现的 vis.js 网络的所有节点的 ID。 我该怎么做?
// I want to do something similar to this.
nodeIdArray:String[]= this.network.getAllNodeIds()
感谢任何对此的指点。
找到解决方案:
this.nodes = new DataSet(data.nodes)//Get the nodes
this.nodes.getIds() //This gives the string array of the node Id's