Clears all existing edges and creates new ones, then reselects a node.

visResetEdges(graph, edges, input, selected_node_input_id)

Arguments

graph

[visNetwork_Proxy(1)]
Proxy of a graph to update.

edges

[data.frame()]
AmyloGraph graph data.

input

[reactivevalues()]
An input object of the app or a module that contains the graph.

selected_node_input_id

[character(1)]
ID of the selected node (protein) to reselect.

Value

The same proxy as in graph parameter, but updated.