How to add edges dynamically to clusters in vis.js?

2.1k Views Asked by At

I am trying to add dynamic nodes to the graph created by vis.js. I can successfully add nodes and edges to an existing graph but I am looking to involve clusters now. I can create clusters for the initial graph but when the graph is modified, it adds edges (with no destination) to the existing graph. (if the destination nodes were in the cluster). On opening the cluster, the graph seems fine. Is there anyway I can create an edge to the cluster if a node is inside the cluster dynamically?

1

There are 1 best solutions below

2
On

I'm the developer of the network modular of vis, did you also make an issue on git? I'll guess so due to the similarity:

https://github.com/almende/vis/issues/930

In short, no it's not possible yet. More information on the git issue.

Cheers!