You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@toqueteos I see how batch operations could be useful, but I'm trying to keep core graph object API as small as possible. It exposes two primitives to implement all sort of batch updates in helper methods: graph.beginUpdate() and graph.endUpdate().
Here is an example:
functionaddLinkBatch(graph,linksArray){// enter into batch modification block. Nothing will be updated on UI// or layout until we call endUpdate();graph.beginUpdate();for(vari=0;i<linksArray.length;++i){varlinkPair=linksArray[i];graph.addLink(linkPair[0],linkPair[1]);}// Now let the world know the graph was changed.graph.endUpdate();}
Is there any way of adding a list of links? Right now one must call addLink N times.
Instead of:
This:
The text was updated successfully, but these errors were encountered: