addStep: Track a modification of a graph

View source: R/Views.R

addStepR Documentation

Track a modification of a graph

Description

Track a modification of a graph

Usage

addStep(
  v,
  action,
  element,
  name = NA,
  layername = NA,
  V1 = NA,
  V2 = NA,
  attributes = NA,
  multi = F,
  trans = T
)

Arguments

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

Value

The View with the added step

Examples

## Not run:  
g=mully:::demo()
view=pathwayView(g,"View1")
view=addStep(view,"remove","layer","")

## End(Not run)

frankkramer-lab/Multipath documentation built on April 30, 2023, 6:08 p.m.