Edits a visNetwork data based on the given command, consistent with the format of commands passed to the _graphChange observers in visNetwork-shiny

modify_visNetwork(event, graphdata_visNetwork, addNull = FALSE)

Arguments

event

The event, with at least a $cmd entry, based on observer format

graphdata_visNetwork

A list of data to be passed to visNetwork

addNull

Whether to automatically add a null edge to a new node

Value

the same format as graphdata_visNetwork, but edited according to event