update_graph: update_graph
Description
Function to update the structure of a graph, given
a set of modification as returned by assess_duplicates
Usage
update_graph(x, del = NULL, add = NULL, changes = NULL)
Value
An updated tgraph object
Arguments
- x
a tgraph object to modify
- del
A vector of element names or numbers to delete
- add
An edge sequence of edges to add to the graph
- changes
Alternatively, the output of
assess_duplicates, containing proposed deletions and
additions