This function updates one or more nodes/edges/combos to an existing g6 graph instance using a proxy object. This allows updating the graph without completely re-rendering it.
g6_update_nodes(graph, nodes)g6_update_edges(graph, edges)
g6_update_combos(graph, combos)
The g6_proxy object (invisibly), allowing for method chaining.
A g6_proxy object created with g6_proxy
.
A data frame or list specifying the nodes/edges/combos to be updated. All elements have to be of the same type, you can't mix nodes with edges.
This function can only be used with a g6_proxy object within a Shiny application. It will not work with regular g6 objects outside of Shiny.
See https://g6.antv.antgroup.com/en/api/data#graphupdatenodedata, https://g6.antv.antgroup.com/en/api/data#graphupdateedgedata and https://g6.antv.antgroup.com/en/api/data#graphupdatecombodata for more details.
g6_proxy
, g6_remove_nodes