addStep | R Documentation |
Track a modification of a graph
addStep(
v,
action,
element,
name = NA,
layername = NA,
V1 = NA,
V2 = NA,
attributes = NA,
multi = F,
trans = T
)
v |
The input view in which the modification should be saved |
action |
The type of action to be applied. Can either be "add" or "remove |
element |
The type of the element to be modified. Can either be "node", "edge", or "layer" |
name |
The name of the element to be modified. This argument is only mandatory for nodes and edges |
layername |
The layer name. This argument is only mandatory for action "add" and element "node" |
V1 |
The start node of an edge. This argument is only mandatory for element "edge" |
V2 |
The end node of an edge. This argument is only mandatory for element "edge" |
attributes |
The named list of attributes of the element. This argument is required only for action "add". It is optional for both elements "node" and "edge", but mandatory if the edge alread exists |
multi |
A boolean whether to select multi-edges or not. This is only mandatory for action "remove" and element "edge". By default set to FALSE, in which case the attributes of the specified edge should be given |
trans |
A boolean whether to add transitive edges upon removal of nodes or layers |
The View with the added step
## Not run:
g=mully:::demo()
view=pathwayView(g,"View1")
view=addStep(view,"remove","layer","")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.